jEdit Community - Resources for users of the jEdit Text Editor
Sort Lines (editplus style sort)
Submitted by p8er on Thursday, 11 May, 2006 - 08:03
I wrote a macro to sort lines of selection or whole buffer.
After I finished it I found there is another sort lines macro here. (Oh! why I don't search it before write this one. )
But my macro is more powerful than the one exist, though the dialog of that one is more pretty. Sticking out tongue

------------------------------------
Here is the description of my macro, just like the sort tool in editplus 2.

Sort selected lines or whole buffer (when nothing is selected).
This is just similar to the sort function in Editplus 2.
Features:
  • Order - Either ascending order or descending order.
  • Starting column - Enter a column number from which the sorting operation begins. The text before this column number will be sorted when string after the column is the same. Enter an integer value great than or equals to 1.
  • Case sensitive - The case-sensitive comparison option.
  • Remove duplicates - Remove any duplicated line after the sorting option.
You can download it here -> download.
Or view the download page here -> download page.

Or you like the old one created by Pascal Dal Farra.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Is it possible to define the
by powery on Tue, 01/03/2016 - 08:27
Is it possible to define the column separator?

Thanks
User login
Browse archives
« September 2017  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   50658
Context Free Art (*.cfdg)   0.31   40790
JBuilder scheme   .001   16801
ColdFusion scheme   1.0   16366
BBEdit scheme   1.0   16353
R Edit Mode - extensive version   0.1   14597
Advanced HTML edit mode   1.0   13860
Matlab Edit Mode   1.0   13772
jEdit XP icons   1.0   13243
XP icons for jEdit   1.1   12259