To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationlist_sort

list_sort (list l[, boolean numeric]) ⇒ list

Sorts a list by order, if the optional parameter, numeric, is set to true, the system treats the list as a list of numbers and sorts them on this assumption. Strings are ordered by their ASCII prime number, that is, each character is transformed to a number, and given a prime number power that is equivelant to it's position in the string. It is then multiplied by the next giving a unique number. Then it is transformed to a string again. Note: This function copies the list, l.

First available: Version 1.3.4

There are no comments on this page.

New comment
Code previewClose
Feedback 👍
Comments are sent via email to me.