Jump to content

Snippets/Sort table on reload: Revision history

Diff selection: Mark the radio boxes of the revisions to compare and hit enter or the button at the bottom.

12 May 2024

11 May 2024

  • curprev 14:4714:47, 11 May 2024 Pppery talk contribs 1,150 bytes +197 No edit summary undo
  • curprev 14:4614:46, 11 May 2024 Pppery talk contribs 953 bytes +953 Created page with "{{Snippet |language1=js }} To "re-sort" a table automatically on the client side as the page loads (as if the user had clicked the header), add the following snippet to add MediaWiki:Common.js. This code snippet below uses the first column to sort every table on a set of pages in ascending order (see Tablesorter documentation). <syntaxhighlight lang="javascript"> function isSortedTablePage() { return ( wgPageName == "Page_To_Sort" || wgPageName == "Other_Pa..."