Skip to content

Commit 8a8d00f

Browse files
committed
Fix sorting order in script-02
1 parent b5cc622 commit 8a8d00f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shell-pipelines/sort-uniq-head-tail/script-02.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -euo pipefail
55
# The input for this script is the scores-table.txt file.
66
# TODO: Write a command to output scores-table.txt, with lines sorted by the person's first score, descending.
77
# The first line of your output should be "Basia London 22 9 6" (with no quotes).
8-
cat scores-table.txt | sort -k3,3nr
8+
cat scores-table.txt | sort -k3,3nr -k1,1r

0 commit comments

Comments
 (0)