Made the weights.tsv output sorted