Task: Sort List While Pushing None Values to the End
Task: Sort List While Pushing None Values to the End: a task in Terminal-Lego-15k (Harbor dataset). Write a Python function that sorts a list in ascending order while ensuring all None values are pushed to the end of the sorted list, rather than appearing at the beginning (which is Python's…
The task
Write a Python function that sorts a list in ascending order while ensuring all `None` values are pushed to the end of the sorted list, rather than appearing at the beginning (which is Python's default behavior).
Part of PrimeIntellect/Terminal-Lego-15k.