Author Topic: Alphabetize Lines  (Read 324 times)

dashley

  • Community Member
  • Posts: 16
  • Hero Points: 0
Alphabetize Lines
« on: August 21, 2024, 02:18:15 PM »
How do I alphabetize a set of lines in a file (not the whole file)? There does not seem to be an options to perform such a basic task.
Thanks,
David Ashley

edwardn9

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: Alphabetize Lines
« Reply #1 on: August 21, 2024, 02:33:48 PM »
Use select-line (ctrl-L in CUA mode) to select the lines to be sorted.
Use Esc to get to the command line.
Enter command "sort-within-selection UI" to sort the lines.  Adjust options to your liking.
I frequently hit Esc and scroll up to my previous usage of the sort command (and a few others).

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2903
  • Hero Points: 153
Re: Alphabetize Lines
« Reply #2 on: August 21, 2024, 02:34:25 PM »
If you want to alphabetize by the whole line, try selecting the lines you want and run "sort-within-selection" on the SlickEdit command line. I don't think that it is on a menu.