You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execute Edit > Line Operations > Sort Lines Lexicographically Ascending.
Expected Behavior
Since the selected column key contains the same characters for both lines, the lines should remain in the original order after the sort.
Actual Behavior
The lines incorrectly change order.
Additionally
A zero-width column-block selection should use as the sort key each line's content from the column of the selection out to the end of line. Currently, this type of selection will cause the single character at the caret column to be used as the key.
So, using the same data as above, and this selection:
will result in no change in line order, when it should swap the lines.
Debug Information
Notepad++ v7.8.9 (32-bit)
Build time : Jul 15 2020 - 20:26:50
Path : C:\.............\npp.7.8.9.bin\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.1039
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dll
The text was updated successfully, but these errors were encountered:
Column selection should not be considered while sorting, otherwise there'll be a lot of cases (operations) should take column and multi-selection into consideration.
Column selection should not be considered while sorting
I don't understand this. Column selection currently (N++ 7.8.9) IS considered while sorting, the current code is just doing it WRONGLY.
a lot of cases (operations) should take column and multi-selection into consideration.
I agree that currently these types of selection operation support is lacking in N++, but it doesn't relate to current issue where column selection is already supported.
Description of the Issue
Steps to Reproduce the Issue
Make this column block selection:
Execute Edit > Line Operations > Sort Lines Lexicographically Ascending.
Expected Behavior
Since the selected column key contains the same characters for both lines, the lines should remain in the original order after the sort.
Actual Behavior
The lines incorrectly change order.
Additionally
A zero-width column-block selection should use as the sort key each line's content from the column of the selection out to the end of line. Currently, this type of selection will cause the single character at the caret column to be used as the key.
So, using the same data as above, and this selection:
will result in no change in line order, when it should swap the lines.
Debug Information
Notepad++ v7.8.9 (32-bit)
Build time : Jul 15 2020 - 20:26:50
Path : C:\.............\npp.7.8.9.bin\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.1039
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dll
The text was updated successfully, but these errors were encountered: