It seems that using the sort feature to sort lines doesn’t sort alphabetically for special characters. A short example I have is the following
FIELD_X
FIELDS
When you try to sort these two lines, they should switch. In the console, the following works:
a = ["FIELD_X", "FIELDS"]
a.sort()
a # ["FIELDS", "FIELD_X"
It seems to have this same issue with other special characters also. Any idea why?