Last modified: 2014-11-17 10:35:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 30674 - Use sort collation config in JavaScript (jquery.tablesorter)
Use sort collation config in JavaScript (jquery.tablesorter)
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal normal with 4 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
: 8732 (view as bug list)
Depends on:
Blocks: 30672 31601 45071
  Show dependency treegraph
 
Reported: 2011-09-01 02:58 UTC by Mark A. Hershberger
Modified: 2014-11-17 10:35 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2011-09-01 02:58:20 UTC
Split off from bug 164, this is a tracking bug for areas that need improved client-side sorting.
Comment 1 Krinkle 2011-09-04 15:22:29 UTC
*** Bug 8732 has been marked as a duplicate of this bug. ***
Comment 2 Derk-Jan Hartman 2013-07-06 15:42:41 UTC
Collation can already be adapted using: mw.config.set('tableSorterCollation',{'Ä':'A','Ö':'O','Ü':'U','ä':'a','ö':'o','ü':'u','ß':'ss'});

The question is, how do we do this automatically. Create a JS version of the Collation class ?
Comment 3 Bawolff (Brian Wolff) 2013-07-06 15:51:37 UTC
Easiest approach would probably to in the parser: read through the table, generate binary sortkeys, turn them into some non-binary form, put it in a data attribute.


The collation class (or rather the third party icu library used by it) is rather complex. I'm doubtful we could re-create it in javascript sanely. For example, it needs to do sorting on three different levels, be able to dynamically insert new "in-between" values, etc. We also don't even know what rules are being used at runtime (as the php bindings don't expose that, and it changes with version).

OTOH, I suppose it doesn't need to be exactly the same. Fixing just the really bad mismatches in sorting behaviour might be good enough.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links