Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sort multiple keys

records.sort(
  key = lambda l: (l[0], l[2])
)
Source by www.lleess.com #
 
PREVIOUS NEXT
Tagged: #python #sort #multiple #keys
ADD COMMENT
Topic
Name
2+1 =