Table.sortNumerically: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

13 August 2022

  • curprev 07:5607:56, 13 August 2022Kezoto talk contribs 1,951 bytes +1,951 Created page with "{{Useful Function}} __NOTOC__ This function sorts tables by index numerically from largest to smallest or from smallest to largest. Its also useful for removing gaps from your table. <br> '''Important : WORKS ONLY FOR TABLES WITH NUMERIC INDEXES!''' <br> ==Syntax== <syntaxhighlight lang="lua">table table.sortNumerically( table theTable, bool fromHighestToLowest = false )</syntaxhighlight> ===Required Arguments=== * '''theTable''': the table you would like to sort. ===O..."