Help talk:Sortable tables

Latest comment: 6 days ago by Pppery in topic shift-clicking  ?

Internal error with recently updated wiki to 1.26.2

edit

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

useful and concise answer. Thanks. -- Christian 🇫🇷 FR (talk) 14:48, 15 December 2024 (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? User:Cojoilustrado 03:42, 9 December 2022 (UTC)Reply

When we speak of years it would be funny to find "2 024" for "2024". As a general rule we will try to render numbers over 999 and the decimal point automatically consistent with the user language and independant of the translator.-- Christian 🇫🇷 FR (talk) 15:02, 15 December 2024 (UTC)Reply

Chatbot generated content

edit

The content under "Forcing the sort mode of a column" has indications of being generated by a chatbot and needs to be checked for accuracy. Jasavina (talk) 01:55, 22 May 2024 (UTC)Reply

I removed the one chatbot-generated sentence. The rest seems to have come from m:Special:PermaLink/26314528 except in a different order and is fine. * Pppery * it has begun 03:17, 22 May 2024 (UTC)Reply
This raises a question about a possible license violation, since help pages are supposed to be licensed as CC0, unlike meta-wiki contents, which are CC-BY-SA. This content was added by @Network-charles at Special:Diff/6516077. Ciencia Al Poder (talk) 08:28, 22 May 2024 (UTC)Reply
Would changing the values in the example solve it? Network-charles (talk) 08:38, 22 May 2024 (UTC)Reply
I don't think a list of code values is copyrightable. It's just a statement of facts with no creativity. * Pppery * it has begun 16:22, 22 May 2024 (UTC)Reply

shift-clicking  ?

edit

@Pppery do you mean holding down the upper arrow key (⇑left or ⇑right key of the keyboard) + clicking with the mouse on the arrow icon of the header table cell ? Thanks. -- Christian 🇫🇷 FR (talk) 12:42, 15 December 2024 (UTC)Reply

What is this in reference to? * Pppery * it has begun 17:12, 15 December 2024 (UTC)Reply
Return to "Sortable tables" page.