Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort filename in list with python

lsorted = sorted(imgs_list, key=lambda x: int(os.path.splitext(x)[0]))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #filename #list #python
ADD COMMENT
Topic
Name
6+6 =