Search
 
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
Name
3+4 =