IDPF / epubtestweb

EPUB testsuite website: http://epubtest.org
22 stars 7 forks source link

table column sorting is not datatype-sensitive #66

Closed marisademeglio closed 5 years ago

marisademeglio commented 6 years ago

From a user:

"I would like to report a small bug in the accessibility grid on epubtest.org (http://epubtest.org/testsuite/accessibility/). When I order the table rows by "NON-VISUAL READING" column the order of the values is: 100%, 38.5%, 61.5%, 69.2%, 76.9%, 84.6%, 92.3%, Not Tested

I think that the problem is that the data is processed as text... "

This has been a longstanding issue (with no tracker item until now) -- need to see what the data table plugin supports and what's the best way to customize sorting.

marisademeglio commented 6 years ago

Our datatables plugin should be ok with percentages but may be getting tripped up by mixed alpha and numeric values (e.g. "Not Tested" in some cells, percentages in others).

We could try a plugin: https://datatables.net/plug-ins/sorting/natural

marisademeglio commented 5 years ago

No longer applicable