Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Sort python list by first element

>>> lis = [[1,4,7],[3,6,9],[2,59,8]]
>>> lis.sort()
>>> lis
[[1, 4, 7], [2, 59, 8], [3, 6, 9]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Sort #python #list #element
ADD COMMENT
Topic
Name
7+7 =