Help talk:Sorting

Jump to navigation Jump to search

I recently updated my wiki to 1.26.2, and now my table sorts don't work! They worked perfectly before, but now even if I use the example on this page, the table isn't sortable!

Any ideas on what I did to break the sortable tables in my wiki? 17:05, 24 January 2016 (UTC)

Sorting works using JavaScript. See if there's any JavaScript error in the developer's console of your browser (you can open it usually hitting F12) --Ciencia Al Poder (talk) 10:30, 25 January 2016 (UTC)
I got this message:
Internal error

Internal error 

Problematic modules: {"startup":"error"}(anonymous function) @ /load.php?debug=false&lang=en-gb&modules=startup&only=scripts&skin=monobook:8
any idea? 22:28, 26 January 2016 (UTC)
Set temporarily $wgShowExceptionDetails and $wgResourceLoaderDebug to true to see if the error message gives further information now. --Ciencia Al Poder (talk) 10:34, 27 January 2016 (UTC)
Thanks... I found it was one of the extensions which was generating an error. Now that I've stopped it loading, sorting is back... I just need to look into getting the extension updated! Thanks 22:47, 30 January 2016 (UTC)

Order in the court![edit]

Please note the definitions of ascending and descending order:

  • The order in how information is sorted or arranged, ascending order is always arranged from lowest to highest. For example, "1, 2, 3, 4, 5" and "a, b, c, d, e, f" are both arranged in ascending order.
  • The order in how information is sorted or arranged, descending order is arranged from highest to lowest. For example, "5, 4, 3, 2, 1" and "e, d, c, b, a" are both arranged in a descending order.

I would not have thought it necessary to explain this here, but see this diff .

--Thnidu (talk) 00:10, 4 September 2016 (UTC)

Wiki table not sortable with mediawiki 1.26.2[edit]


I copy/paste the sortable examples from mediawiki to my 1.26.2 wiki but the table is not sortable (and I don't see the up/down arrows)... Is there any extra configuration to do ?

Like this simple one for example

Fruit Price
Apples £0.95
Oranges £0.85
Pears £1.15

Many thanks


Is your wiki public? Post a link in that case. It may be a JavaScript error preventing some scripts from loading. --Ciencia Al Poder (talk) 20:55, 16 March 2017 (UTC)
I have inserted the sortable table in a test page for you to see (note : it works with Vector skin but not current custom skin, but I don't know how to find and add the sortable javascript to custom skin) --Alex
Thanks for the link. Your skin doesn't load any of the MediaWiki scripts so I guess you're missing something on the skin to load the scripts or you've overridden some method that handles the inclusion of those scripts somewhere. You may want to ask for help in Project:Support desk about this since I don't really know what could be missing, since I haven't been involved in skin development --Ciencia Al Poder (talk) 10:39, 17 March 2017 (UTC)