angerangel edited this page Jan 7, 2013 · 1 revision

USAGE

   SORT series /case /skip size /compare comparator /part length /all /reverse

DESCRIPTION

Sorts a series; default sort order is ascending.

SORT is an action value.

ARGUMENTS

  • series -- At position (modified) (series!)

REFINEMENTS

  • /case -- Case sensitive sort
  • /skip -- Treat the series as records of fixed size
    • size -- Size of each record (integer!)
  • /compare -- Comparator offset, block or function
    • comparator (integer! block! any-function!)
  • /part -- Sort only part of a series
    • length -- Length of series to sort (number! series!)
  • /all -- Compare all fields
  • /reverse -- Reverse sort order

#SOURCE

sort: make action! [  [
    "Sorts a series; default sort order is ascending."
    series [series!] "At position (modified)"
    /case "Case sensitive sort"
    /skip "Treat the series as records of fixed size"
    size [integer!] "Size of each record"
    /compare "Comparator offset, block or function"
    comparator [integer! block! any-function!]
    /part "Sort only part of a series"
    length [number! series!] "Length of series to sort"
    /all "Compare all fields"
    /reverse "Reverse sort order"
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.