Fix typo in Sorting howto (#92280)

The phrase is usually "odds and ends," not "odd and ends."
This commit is contained in:
Carl Meyer 2022-05-03 21:38:29 -06:00 committed by GitHub
parent 465fdc02a3
commit 7d7a378c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -305,8 +305,8 @@ To convert to a key function, just wrap the old comparison function:
In Python 3.2, the :func:`functools.cmp_to_key` function was added to the
:mod:`functools` module in the standard library.
Odd and Ends
============
Odds and Ends
=============
* For locale aware sorting, use :func:`locale.strxfrm` for a key function or
:func:`locale.strcoll` for a comparison function.