Rebol 编程/声音
外观
< Rebol 编程
SORT series /case /skip size /compare comparator /part length /all /reverse
对一个序列进行排序。
SORT 是一个动作值。
- series -- (类型:序列端口)
- /case -- 区分大小写排序。
- /skip -- 将序列视为固定大小的记录。
- size -- 每个记录的大小。(类型:整数)
- /compare -- 比较偏移量,块或函数。
- comparator -- (类型:整数块函数)
- /part -- 只排序序列的一部分。
- length -- 要排序的序列长度。(类型:整数)
- /all -- 比较所有字段
- /reverse -- 反转排序顺序
sort: native[
"Sorts a series."
series [series! port!]
/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! function!]
/part "Sort only part of a series."
length [integer!] "Length of series to sort."
/all "Compare all fields"
/reverse "Reverse sort order"
]