There are several ways to sort things when fields are tab separated. The simplest I have found is
Code:
TAB=`echo -e "\t"`
sort -t"$TAB" -k 5,3 scrambledFile.tsv > sorted.tsv
syntax may vary for dos shells, possibly as
Code:
set tab=echo "\t"
sort -t"%tab%" -k5,3 scrambledFile.tsv > sortedFile.tsv
As of this posting, both variations are subject to verification of the syntax.