bundles / IPython 9.18.0.dev / IPython / utils / text / SList / sort
function
IPython.utils.text:SList.sort
source: /IPython/utils/text.py:218
Signature
def sort(self, field: builtins.list[str] | None = None, nums: bool = False) → SelfSummary
sort by specified fields (see fields())
Extended Summary
Example
a.sort(1, nums = True)Sorts a by second field, in numerical order (so that 21 > 3)
Aliases
IPython.core.interactiveshell.SList.sort