in excel 1 M 2 K 3 F sort all content by column 1 from descendently => 3 F 2 K 1 M then make a matrix transpose.