OSDN Git Service

66d381c6cc211560ddce48aa0ffe6f6224984409
[bacon/BaCon-Japanese.git] / 関数・命令 / SORT.txt
1   SORT
2
3    SORT <x> [SIZE <x>] [DOWN]
4
5    Type: statement
6
7    配列を並べ替えます。
8    Only the basename of the array should be mentioned, not the dimension.
9    The array may both be a numeric or a string array.
10    The amount of elements involved can be specified with SIZE.
11    This keyword is optional for static arrays,
12    but should always be used in case of dynamic arrays.
13    Also optionally the keyword DOWN can be used to sort in descending order.
14    例:
15
16    GLOBAL a$[5] TYPE STRING
17    a$[0] = "Hello"
18    a$[1] = "my"
19    a$[2] = "good"
20    a$[4] = "friend"
21    SORT a$
22