Open codefrog2002 opened 5 months ago
Note that other punctuation sorts as expected by ascii value
a
b
c
'a
'b
'c
`a
`b
`c
"a
"b
"c
sorts to
"a
"b
"c
`a
`b
`c
a
'a
b
'b
c
'c
For my current purposes (which are limited to English) I was able to patch the relevant line in SortLinesCommand.SortText
var orderedText = splitText.OrderBy(x => x, StringComparer.Ordinal);
But I fear this would break the sorts for people using other alphabets and codepoints.
Environment
Description
Sort lines [ctrl-m F9] is ignoring a leading tick ' when sorting.
Steps to recreate
Select the 6 lines and sort-by-line (ctrl-m F9)
Current behavior
Sort lines ignored the leading ticks.
Expected behavior
Sorted by ascii value [ ascii ' precedes ascii a,b,c]