Page 1 of 1

.

Posted: Sun Mar 01, 2015 9:39 pm
by MCKALISTAIR
Here's the situation. I have a text file on my desktop (Mac) and am reading it to a field on a card. The data that it reads consists of a name and a number separated by a dash ( for example, Dave - 100) I was wondering if there is a way I could sort the list so the highest number is at the top?

Many thanks

Re: Sorting using text files

Posted: Sun Mar 01, 2015 9:47 pm
by Dixie

Code: Select all

on mouseUp
   set itemdel to "-"
   sort lines of fld "whateverItsNameis"  numeric descending by item 2 of each
end mouseUp