$text = $td->text;
if($td->getAttribute('data-flag')) {
$text = $td->getAttribute('data-flag');
- } elseif($td->getAttribute('sorttable_customkey')) {
- $text = $td->getAttribute('sorttable_customkey');
+ }
+
+ if($td->getAttribute('sorttable_customkey')) {
+ $text = str_replace(',', ', ',$td->getAttribute('sorttable_customkey'));
+ }
+
+ if($td->getAttribute('data-type-media')) {
+ $text = $td->getAttribute('data-type-media') . ' : ' . $text ;
}
$datas[$k][] = trim(preg_replace('/\s\s+/', ' ', $text));
<tbody>
@foreach($multimedia as $label=>$media)
<tr>
- <td class="whitespace-nowrap" data-sort-value="{{$label }}">
+ <td class="whitespace-nowrap" data-sort-value="{{$label }}" data-type-media="{{ $media['type'] }}">
<i class="{{$icons[$media['type']]}}"></i> {{$label }}
</td>
@include('fluidbook_stats.pagelink',['group'=>$media['pages'][0]??''])