| View previous topic :: View next topic |
| Author |
Message |
Uminnsky
Joined: 12 Aug 2009 Posts: 23
|
Posted: Thu Aug 13, 2009 12:57 am Post subject: descending sort |
|
|
Ok, I can not make sense out of the help document code snipets for the Sort function. Everything works fine but I need descending rather than ascending. How can I adjust this? Thanks!
fil | Code: | eread,rsort,C:\Program files\test\rsort.txt
sort, rsort,n |
|
|
| Back to top |
|
 |
Guest
|
Posted: Thu Aug 13, 2009 2:16 am Post subject: |
|
|
| Code: | list =
(
a
c
b
)
sort, list, R
msgbox, % list |
|
|
| Back to top |
|
 |
ZANZA
Joined: 10 Aug 2009 Posts: 12
|
Posted: Thu Aug 13, 2009 2:53 am Post subject: Answer |
|
|
Here you go
| Code: |
FileRead, OutputVar, C:\My File.txt
list =
(
%OutputVar%
)
sort, list, R
msgbox, % list |
_________________ Beta. Software undergoes beta testing shortly before it's released. Beta is Latin for "still doesn't work."
The programmer's national anthem is 'AAAAAAAARRRRGHHHHH!!'. |
|
| Back to top |
|
 |
Uminnsky
Joined: 12 Aug 2009 Posts: 23
|
Posted: Thu Aug 13, 2009 3:28 pm Post subject: |
|
|
| Thanks...just needed to switch the N to R, thanks! |
|
| Back to top |
|
 |
|