Sorting in BED.exe

Started by Pietro54, October 30, 2023, 04:50:55 AM

Previous topic - Next topic

Pietro54

Greetings everyone
when I use BED.EXE and sort the entire file the result is the same desired.
However, if I select for example 5 rows after the sorting the row on which it is positioned the cursor disappears.
Is this a defect or am I doing something wrong?

MrBcx

Pietro,

When selecting your lines to sort, the bottom of your selection must stop on the right side of a line.

If you stop at the left side of a line, you will get the behavior you are seeing.


Pietro54

Thanks MrBCX.
I noticed the problem when I ordered the first lines of a SET ... END SET array and a row was missing.
However, the behavior of BED is different from other editors where the selected rows are included or not in the sorting but never deleted.

MrBcx

Your problem is not in the sorting, it's in how you select the data.

For example, you will have a mess on your hands if you start or end
your selection anywhere in the middle of your lines.  BED's sorting is
intended for whole lines of selected text.

* Top of selection must be the first character of a line.
* Bottom of selection must be the last character of a line.

If you follow those 2 rules, you shouldn't have any problems.