Home / Python Tips Generated By ChatGPT / The sorted() Function for Ordering Collections in Python Create a new sorted list from the elements of any iterable. Source Code sorted_numbers = sorted(numbers) print(sorted_numbers)