DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python sort multiple keys
records.sort( key = lambda l: (l[0], l[2]) )
Source by www.lleess.com #
PREVIOUS
NEXT
Tagged:
#python
#sort
#multiple
#keys
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit