https://bugzilla.wikimedia.org/show_bug.cgi?id=45161

       Web browser: ---
            Bug ID: 45161
           Summary: Kill all non-trivial parsers in $.tablesorter
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: javascript
          Severity: normal
          Priority: Unprioritized
         Component: Interface
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
            Blocks: 700, 31601
    Classification: Unclassified
   Mobile Platform: ---

$.tablesorter does a lot of guesswork trying to infer what does the content in
a table mean. It sometimes work, mostly for English; however, trying to (for
example) guess if a column contains dates just plain doesn't work for some, if
not most, languages.

Apart from numbers, $.tablesorter tries to guess dates and times in four
distinct formats, currencies, IP addresses, and for some reasons URLs.

I'd kill everything but detecting and sorting numeric values, and even this I'd
do differently (using "natural sorting" - identifying runs of digits and
non-digits and sorting them separately).
[http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html]

For sorting any remotely complicated data one should use a data-sort-value
attribute on the <td> (which will be used as the sortkey for given cell), or a
template that wraps it.

Bugs probably caused by or related to this misfeature (I didn't double-check):
bug 15404, bug 31137, bug 34475, bug 39069, bug 42097, bug 42607, bug 42924,
bug 43165.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to