Sorting datatable according to multiple columns

the scenario you told will not happen since there can only be two unique values for a single group of first column. i.e, in 1,1,1 there can only be two unique values in second column. same with 2,2,2