If your only sorting the first column what's wrong with the examples you found that can sort 1 dimension array?