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
.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 4
- Joined: Wed Dec 17, 2014 8:03 pm
.
Last edited by MCKALISTAIR on Sun Mar 08, 2015 2:40 pm, edited 1 time in total.
Re: Sorting using text files
Code: Select all
on mouseUp
set itemdel to "-"
sort lines of fld "whateverItsNameis" numeric descending by item 2 of each
end mouseUp