Last modified: 2013-05-19 18:54:47 UTC
Table columns of datatype Boolean seem to be not sortable when used in |format=template. See an example [http://telefonanbieter-wechseln.org/w/Alle_Tarife here] (click on column header "Festnetz-Flatrate"). When the same data is output via |format=broadtable sorting this column works just fine ([http://telefonanbieter-wechseln.org/w/Sandbox example]). MW Version: 1.19.6 SMW Version: 1.8.0.4
In addition I found that columns of datatype Number are not sorted the right way too when using |format=template. If you click on "Download-Geschwindigkeit" on http://telefonanbieter-wechseln.org/w/Alle_Tarife the sorting is 100, 16, 50. With |format=broadtable this works fine (100, 50, 16) - see http://telefonanbieter-wechseln.org/w/Sandbox sorting.
(In reply to comment #1) Please forget about comment #1. I just found the column sorts the right way if I remove the text ("MBit/s") after the number. Still this doesn't solve my problem since I would like to show "MBit/s" after the number...
I found that when using my own table (with |format=template) the table cells don't have a data-sort-value. It's just <td>Content</td> When generated with |format=broadtable the table cells looks like this: <td class="Festnetz-Flatrate" data-sort-value="1">Content</td> How can I modify my own table so that it contains those data-sort-values? Thanks.