Sorts and prints smallest temperature difference