AutoHotkey Community

It is currently May 26th, 2012, 9:36 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: descending sort
PostPosted: August 13th, 2009, 1:57 am 
Offline

Joined: August 12th, 2009, 6:07 pm
Posts: 26
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2009, 3:16 am 
Code:
list =
(
a
c
b
)
sort, list, R
msgbox, % list


Report this post
Top
  
Reply with quote  
 Post subject: Answer
PostPosted: August 13th, 2009, 3:53 am 
Offline

Joined: August 10th, 2009, 8:17 am
Posts: 12
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!!'.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2009, 4:28 pm 
Offline

Joined: August 12th, 2009, 6:07 pm
Posts: 26
Thanks...just needed to switch the N to R, thanks!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, JSLover, virpara and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group