Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort by tuple

sorted_by_second = sorted(data, key=lambda tup: tup[1])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #tuple
ADD COMMENT
Topic
Name
6+7 =