Message416997
I don't think splashing this everywhere else in the docs would be helpful. Tools like list.sort, sorted, min, max, nlargest, nsmallest use whatever sort order is provided by the underlying object whether it be a string, tuple, float, or int.
The section on expressions is the intended place to cover how comparison are defined for core objects: https://docs.python.org/3/reference/expressions.html#value-comparisons
As suggested, I will edit the sorting howto to be cleared that locale aware sort ordering refers to alphabetical orderings which can vary (for example, the Spanish ll sorts differently in different locales). |
|
Date |
User |
Action |
Args |
2022-04-08 17:45:22 | rhettinger | set | recipients:
+ rhettinger, steven.daprano, CendioOssman |
2022-04-08 17:45:22 | rhettinger | set | messageid: <1649439922.96.0.430732871164.issue47259@roundup.psfhosted.org> |
2022-04-08 17:45:22 | rhettinger | link | issue47259 messages |
2022-04-08 17:45:22 | rhettinger | create | |
|