0

Note the sort command has no effect. The items with leading left parentheses should be together.

What am I doing wrong?

$ cat strange
(ADJP
ADJP)
(ADVP
ADVP)
$ sort strange
(ADJP
ADJP)
(ADVP
ADVP)
$ sort --version
sort (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and Paul Eggert.

$ uname -a
Linux ML 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
James Bowery
  • 131
  • 4
  • 1
    Collation weight is determined by your locale - see for example [Why does gnu `sort` ignore non-alpha charectars?](https://unix.stackexchange.com/questions/631702/why-does-gnu-sort-ignore-non-alpha-charectars) – steeldriver Mar 09 '23 at 03:23

0 Answers0