Hello,

first, read your values into an array. Then you can just perform a sorting algorithm on it, quicksort (german) for example.