Sorting the Tuple