group = (1 \ 1 \ 1 \ 2 \ 2 \ 2 \ 3 \ 3 \ 4 \ 5 \ 5 \ 6 \ 7 \ 8 \ 8 \ 8)
order(group,1)
The result seems to be ramdon.
: order(group,1)
1
+------+
1 | 2 |
2 | 1 |
3 | 3 |
4 | 5 |
5 | 4 |
6 | 6 |
7 | 8 |
8 | 7 |
9 | 9 |
10 | 11 |
11 | 10 |
12 | 12 |
13 | 13 |
14 | 14 |
15 | 16 |
16 | 15 |
+------+
: order(group,1)
1
+------+
1 | 2 |
2 | 3 |
3 | 1 |
4 | 6 |
5 | 4 |
6 | 5 |
7 | 7 |
8 | 8 |
9 | 9 |
10 | 10 |
11 | 11 |
12 | 12 |
13 | 13 |
14 | 14 |
15 | 16 |
16 | 15 |
+------+
I expect that the result is
1
+------+
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
10 | 10 |
11 | 11 |
12 | 12 |
13 | 13 |
14 | 14 |
15 | 15 |
16 | 16 |
+------+
Is there any way to do this.
Thanks!
order(group,1)
The result seems to be ramdon.
: order(group,1)
1
+------+
1 | 2 |
2 | 1 |
3 | 3 |
4 | 5 |
5 | 4 |
6 | 6 |
7 | 8 |
8 | 7 |
9 | 9 |
10 | 11 |
11 | 10 |
12 | 12 |
13 | 13 |
14 | 14 |
15 | 16 |
16 | 15 |
+------+
: order(group,1)
1
+------+
1 | 2 |
2 | 3 |
3 | 1 |
4 | 6 |
5 | 4 |
6 | 5 |
7 | 7 |
8 | 8 |
9 | 9 |
10 | 10 |
11 | 11 |
12 | 12 |
13 | 13 |
14 | 14 |
15 | 16 |
16 | 15 |
+------+
I expect that the result is
1
+------+
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
10 | 10 |
11 | 11 |
12 | 12 |
13 | 13 |
14 | 14 |
15 | 15 |
16 | 16 |
+------+
Is there any way to do this.
Thanks!
Comment