I'm trying to sort a list strings case-sensitively, but the list is coming out in case-insensitive order. The man or --help info for sort gives me a -f or --ignore-case option, but doesn't list an option for sorting insensitively to override what seems to be the default order. I checked to make sure there is no alias defined for sort.
Why is sort defaulting operation to the thing that an option lets me select, and why is there no option documented to override that default?
Further checking makes it look to be doing a dictionary sort because it seems to be ignoring punctuation. In any case I want it to behave like it's supposed to default to, or at least give me CLI overrides to make it behave like it's supposed to.
sort --version sort (GNU coreutils) 8.4
Centos 6 I think.
sort
version (and provenance -- what OS/distribution) and some sample data for us to test against?LC_CTYPE
variable, so the contents of that might be useful as well.echo "$LC_CTYPE"
locale