Sign in Join
Wiki copytemporary

IDE Window: Sort selection: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: IDE Window: Sort selection

OldNewLine
1+## Direction
2+
3+- Ascending - from low to high: for example a,b, ... z
4+- Descending - from high to low: for example z, y, ..., a
5+
6+## Domain
7+
8+### Lines
9+
10+Sort lines.
11+
12+### Words
13+
14+Sort words. The selection is splitted on every word start and sorted. For example:
15+
16+` enum3, enum1, enum2,`
17+
18+becomes
19+
20+` enum1, enum2,enum3,`
21+
22+### Paragraphs
23+
24+Sort paragraphs. The selection is splitted on every start of a paragraph. A paragraph starts with a line less indented. For example:
25+
26+`   procedure Button1Click(Sender: TObject);`\
27+`   procedure FormCreate(Sender: TObject);`\
28+`   procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);`\
29+`   procedure FormPaint(Sender: TObject);`\
30+`   procedure FormMouseUp(Sender: TOBject; Button: TMouseButton;`\
31+`     Shift: TShiftState; X, Y: Integer);`\
32+`   procedure FormMouseDown(Sender: TOBject; Button: TMouseButton;`\
33+`     Shift: TShiftState; X, Y: Integer);`\
34+`   procedure FormDestroy(Sender: TObject);`
35+
36+becomes
37+
38+`   procedure Button1Click(Sender: TObject);`\
39+`   procedure FormCreate(Sender: TObject);`\
40+`   procedure FormDestroy(Sender: TObject);`\
41+`   procedure FormMouseDown(Sender: TOBject; Button: TMouseButton;`\
42+`     Shift: TShiftState; X, Y: Integer);`\
43+`   procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);`\
44+`   procedure FormMouseUp(Sender: TOBject; Button: TMouseButton;`\
45+`     Shift: TShiftState; X, Y: Integer);`\
46+`   procedure FormPaint(Sender: TObject);`
47+
48+## Options
49+
50+- Case sensitive - distinguish lower and upper case
51+- Ignore space - multiple spaces are treated as one, when comparing lines
52+
53+---
54+*From the Free Pascal wiki, page "IDE Window: Sort selection", as it stood on 2015-07-03 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history