>>229
sort をパイプで繋げばいいのでは?

$ sort < hogehoge.txt | sort -t '|' -k 1 | sort -r -t '|' -k 2

脳内シェルで作ったので適当にアレンジ、修正してね