DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
sort strings as numbers python
a = sorted(a, key=lambda x: float(x))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sort
#strings
#numbers
#python
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit