Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sort list in reverse order

# there are two types of lists
# returns new list
sorted(list_name, reverse=True)

# changes list in place
list_name.sort(reverse=True)
 
PREVIOUS NEXT
Tagged: #python #sort #list #reverse #order
ADD COMMENT
Topic
Name
2+9 =