DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
python sort list according to two elements in tuple
sorted(unsorted, key=lambda element: (element[1], element[2]))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#sort
#list
#elements
#tuple
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit