stable-sort

Is python's sorted() function guaranteed to be stable?

Is python's sorted() function guaranteed to be stable? Question: The documentation doesn’t guarantee that. Is there any other place that it is documented? I’m guessing it might be stable since the sort method on lists is guaranteed to be stable (Notes 9th point: “Starting with Python 2.3, the sort() method is guaranteed to be stable”), …

Total answers: 5