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
For better clarity concerning whether a particular sort is going to be case sensitive or case insensitive, my suggestion is to rename the commands to something like this:
Sort lines (ascending, case sensitive)
Sort lines (ascending, case insensitive)
Sort lines (line length)
Sort lines (descending, case sensitive)
Sort lines (unique, case sensitive)
Sort lines (shuffle)
The text was updated successfully, but these errors were encountered:
Thanks for merging my PR which takes care of part of this (i.e. the renaming of the commands which already exist). However, in doing some testing of the commands with their new names, I've discovered that the case insensitive sorting doesn't actually work as expected.
Take these 4 lines of text, for example:
AAA
aaa
AAA
aaa
If I use the TextFX plugin for Notepad++ to do an ascending, case insensitive sort of these lines, it leaves them exactly as they are (as expected). However, if I use this Sort Lines extension in VS Code and issue the command 'Sort lines (ascending, case insensitive)' then this happens:
I'd rather see "descending" removed as an attribute of each kind of sort, and just add a separate feature to "reverse the selected lines". So if I want to sort descending, I just sort ascending, then reverse the order of the lines with a second command.
The main reason I suggest this is so that you don't have an excessively large list of sort options. Otherwise there would be a variant for each case of flags as @Eldaw pointed out.
For better clarity concerning whether a particular sort is going to be case sensitive or case insensitive, my suggestion is to rename the commands to something like this:
Sort lines (ascending, case sensitive)
Sort lines (ascending, case insensitive)
Sort lines (line length)
Sort lines (descending, case sensitive)
Sort lines (unique, case sensitive)
Sort lines (shuffle)
The text was updated successfully, but these errors were encountered: