Sorting three numbers