Thanks for the replys,
i have created the code that you had shown and it is arranging the data in not just asceding order of the first column but alsothe second column.
you can see from the orignal data that the first occurence of channel 0 is in the second row, its data is F32. F32 should be a the top of the newly arrange data, but as it is arranging both by ascending order it is in the 98th row.
ive attached a vi of the dta im receiving