IDE Window: Sort selection: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | ## Direction | |
| 2 | 2 | ||
| 3 | 3 | - Ascending - from low to high: for example a,b, ... z | |
| 4 | 4 | - Descending - from high to low: for example z, y, ..., a | |
| 5 | 5 | ||
| 6 | 6 | ## Domain | |
| 7 | 7 | ||
| 8 | 8 | ### Lines | |
| 9 | 9 | ||
| 10 | 10 | Sort lines. | |
| 11 | 11 | ||
| 12 | 12 | ### Words | |
| 13 | 13 | ||
| 14 | 14 | Sort words. The selection is splitted on every word start and sorted. For example: | |
| 15 | 15 | ||
| 16 | - | ||
| 16 | + | ```text | |
| 17 | + | enum3, enum1, enum2, | |
| 18 | + | ``` | |
| 17 | 19 | ||
| 18 | 20 | becomes | |
| 19 | 21 | ||
| 20 | - | ||
| 22 | + | ```text | |
| 23 | + | enum1, enum2,enum3, | |
| 24 | + | ``` | |
| 21 | 25 | ||
| 22 | 26 | ### Paragraphs | |
| 23 | 27 | ||
| 24 | 28 | Sort paragraphs. The selection is splitted on every start of a paragraph. A paragraph starts with a line less indented. For example: | |
| 25 | 29 | ||
| 26 | - | ||
| 27 | - | ||
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | - | ||
| 32 | - | ||
| 33 | - | ||
| 34 | - | ||
| 30 | + | ``` pascal | |
| 31 | + | procedure Button1Click(Sender: TObject); | |
| 32 | + | procedure FormCreate(Sender: TObject); | |
| 33 | + | procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); | |
| 34 | + | procedure FormPaint(Sender: TObject); | |
| 35 | + | procedure FormMouseUp(Sender: TOBject; Button: TMouseButton; | |
| 36 | + | Shift: TShiftState; X, Y: Integer); | |
| 37 | + | procedure FormMouseDown(Sender: TOBject; Button: TMouseButton; | |
| 38 | + | Shift: TShiftState; X, Y: Integer); | |
| 39 | + | procedure FormDestroy(Sender: TObject); | |
| 40 | + | ``` | |
| 35 | 41 | ||
| 36 | 42 | becomes | |
| 37 | 43 | ||
| 38 | - | ||
| 39 | - | ||
| 40 | - | ||
| 41 | - | ||
| 42 | - | ||
| 43 | - | ||
| 44 | - | ||
| 45 | - | ||
| 46 | - | ||
| 44 | + | ``` pascal | |
| 45 | + | procedure Button1Click(Sender: TObject); | |
| 46 | + | procedure FormCreate(Sender: TObject); | |
| 47 | + | procedure FormDestroy(Sender: TObject); | |
| 48 | + | procedure FormMouseDown(Sender: TOBject; Button: TMouseButton; | |
| 49 | + | Shift: TShiftState; X, Y: Integer); | |
| 50 | + | procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); | |
| 51 | + | procedure FormMouseUp(Sender: TOBject; Button: TMouseButton; | |
| 52 | + | Shift: TShiftState; X, Y: Integer); | |
| 53 | + | procedure FormPaint(Sender: TObject); | |
| 54 | + | ``` | |
| 47 | 55 | ||
| 48 | 56 | ## Options | |
| 49 | 57 | ||
| 50 | 58 | - Case sensitive - distinguish lower and upper case | |
| 51 | 59 | - Ignore space - multiple spaces are treated as one, when comparing lines | |
| 52 | 60 | ||
| 53 | 61 | --- | |
| 54 | 62 | *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).* |
