AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

descending sort

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Uminnsky



Joined: 12 Aug 2009
Posts: 23

PostPosted: Thu Aug 13, 2009 12:57 am    Post subject: descending sort Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Thu Aug 13, 2009 2:16 am    Post subject: Reply with quote

Code:
list =
(
a
c
b
)
sort, list, R
msgbox, % list
Back to top
ZANZA



Joined: 10 Aug 2009
Posts: 12

PostPosted: Thu Aug 13, 2009 2:53 am    Post subject: Answer Reply with quote

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
View user's profile Send private message Visit poster's website
Uminnsky



Joined: 12 Aug 2009
Posts: 23

PostPosted: Thu Aug 13, 2009 3:28 pm    Post subject: Reply with quote

Thanks...just needed to switch the N to R, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group