Tablesorter: Use localeCompare
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Sun, 16 Jun 2019 13:53:37 +0000 (15:53 +0200)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Sun, 16 Jun 2019 14:24:56 +0000 (16:24 +0200)
commit1fed6d003dd05efabe38bf5bb8ee3de02fe0481a
tree64c1f94f2f2a89c2431856d560d3746f2dac8738
parentf501a591a10ddd084fdd3c5054f237d6165d7134
Tablesorter: Use localeCompare

This should reduce the need for the collationRegex.
It also removes the need for the lowercase based sorting, and
lowercase vs. uppercase order is now determined by the selected
locale.

Android Webviews don't support this, so fallback to the old sort
routine is required.

Have not removed collation regex yet, as the
level of support for specific locales is not entirely clear to me.
Maybe something we should gather statistics for.

Bug: T32674
Bug: T47070
Change-Id: Ie7fe7317471eb12d6a65dfe3c68858c7dc0e92dc
resources/src/jquery.tablesorter/jquery.tablesorter.js
tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js
tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js