I'm trying to find most common word sorted alphabetically. For example:
2 went
2 wonder
2 wont
3 began
3 little
3 moment
3 rabbit
3 thing
3 till
4 alice
4 bottle
4 came
4 sure
4 window
The output should be alice
(has highest value and it is the first word alphabetically).
I'm doing sort -nr
and can't figure out what to do next.