From fbc64b01361bd6b00d51a4d24eabbc0a094a73dd Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 22 Jun 2022 22:24:57 +0200 Subject: [PATCH] modulecmd: bugfix in sub-cmd search - sorting fixed --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 4e041ba..ea7f5c0 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -2216,7 +2216,7 @@ subcommand_search() { ${func_print_header} while read -a toks; do ${func_print_line} "${toks[@]}" - done < <("${sort}" --version-sort -k 1,1 -k 4,4 -k 5,5 "${tmpfile}" | \ + done < <("${sort}" --version-sort -k 1,1 -k 6,6 -k 7,7 "${tmpfile}" | \ ${awk} "${with_modules}") }