Help talk:Sorting

From mediawiki.org
Latest comment: 7 years ago by Ciencia Al Poder in topic Wiki table not sortable with mediawiki 1.26.2

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? 188.222.56.114 17:05, 24 January 2016 (UTC)Reply

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)Reply
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? 188.222.56.114 22:28, 26 January 2016 (UTC)Reply
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)Reply
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 188.222.56.114 22:47, 30 January 2016 (UTC)Reply

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)Reply

Wiki table not sortable with mediawiki 1.26.2[edit]

Hello,

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

Alex

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)Reply
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)Reply

Sorting of numbers in Spanish[edit]

Hi all, under the latest rules of writing numbers in Spanish, numbers largers than 9999 should be separated by space, not a comma or a period. In the past 20K was 20.000, but now it's 20 000. Naturally things don't get sorted right in tables with these numbers. What adjustment should I make to get it to sort under this rule? Is it possible? Cojoilustrado 03:42, 9 December 2022 (UTC)