Dear Maintainer,
When using -n -u, the "2b-bar" line gets dropped very unexpectedly. I don't
think this should be default behavior, at least I am now very wary and will
avoid sort -n -u whenever possible:
echo -e '1a-foo\n1b-bar\n2' | sort -n -u
1a-foo
2
but with uniq it works like expected:
echo -e '1a-foo\n1b-bar\n2' | sort -n | uniq
1a-foo
1b-bar
2