Timeline for Choice of field separator affects sort's ordering
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| 13 hours ago | history | became hot network question | |||
| 13 hours ago | answer | added | terdon♦ | timeline score: 4 | |
| 14 hours ago | comment | added | Andy Dalton |
Related to @Kusalananda 's comment above, did your indent to have ... LC_ALL=_something_ sort ...?
|
|
| 22 hours ago | comment | added | Kusalananda♦ |
Since you are not telling sort what fields to use (e.g. with -k 1,1 -k 2,2), it's using the whole line as the sort key. That would not avoid using the field delimiter as a sorting character. You get the same behaviour with the default field delimiter. I'm sure this has been asked before...
|
|
| 23 hours ago | comment | added | Kusalananda♦ |
What does find (mentioned at the end) have to do with anything? Also, your invocation of sort seems to be prefixed by LC_ALL in a way that makes LC_ALL the command and sort an argument to that command.
|
|
| yesterday | history | asked | Melab | CC BY-SA 4.0 |