Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list sort key lambda on equal other function

list1.sort(key=lambda x: (x.value1, x.value2))
 
PREVIOUS NEXT
Tagged: #python #list #sort #key #lambda #equal #function
ADD COMMENT
Topic
Name
6+5 =