sort
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | sort [2006/07/11 04:57] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: sort.txt,v 1.1.1.1 2006/07/11 04:57:43 jnelson Exp $ | ||
+ | ======Synopsis: | ||
+ | $__sort__(< | ||
+ | $__numsort__(< | ||
+ | |||
+ | ======Technical: | ||
+ | These functions sort the given list in ascending order. | ||
+ | function sorts the list based on character value, while $__numsort__() | ||
+ | sorts by numeric value. | ||
+ | |||
+ | ======Practical: | ||
+ | The $__sort__() function is used primarily for alphabetizing the list. It | ||
+ | isn't true alphabetical order, since uppercase letters come before | ||
+ | lowercase, but it works for most cases. | ||
+ | used for sorting a list of numbers. | ||
+ | and any non-number is treated as 0 (zero). | ||
+ | |||
+ | ======Returns: | ||
+ | the given list, sorted | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $sort(foo bar blah erf booya) | ||
+ | $sort(foo Bar blah Erf booya) | ||
+ | $numsort(4 -6 34 -96 0) | ||
+ | $numsort(4 -6 34 -96 0Erf blah) | ||
+ | </ | ||
+ | |||
sort.txt · Last modified: 2006/07/11 04:57 by 127.0.0.1