sorting the numbers comming from the data