Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for an app (script?) to alphabetize a list
#11
Older TextSoap 5, 6, and 7
Reply
#12
Thanks all.

At TheTominator's suggestion, I went back into TextWrangler, and indeed it could alphabetize my list, but with a completely cryptic check box labeled only "Sorted lines replace selection".
Reply
#13
TheTominator wrote:
If you already have the text inside a program such as a word processor and don't want to save it to a separate plain text file...

Highlight the text.
Copy.
At the Terminal command prompt type "pbpaste | sort | pbcopy" and hit return.
Go back to your word processor and Paste.

The selection will be replaced with the text sorted.
By default it will be sorted alphabetically in ascending order.
To sort in descending order use "pbpaste | sort -r | pbcopy"
To sort in ascending numerical order use "pbpaste | sort -n | pbcopy"
To sort in descending numerical order use "pbpaste | sort -nr | pbcopy"

++ THIS IS THE BEST SUGGESTION YET. ++

Assuming each item to be sorted is on its own separate line, this works with EVERY text source in any application (mind you have to use a second app - Terminal.app) TheTominator gets my Genius Award for the thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)