Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort strings as numbers python

>>> b = ["949.0","1099.0"]
>>> b.sort(key=float)
>>> b
['949.0', '1099.0']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #strings #numbers #python
ADD COMMENT
Topic
Name
2+5 =