Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

Official ZPE/YASS documentationlist_sort

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
Comments
Feedback 👍
Comments are sent via email to me.