Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort np list of string

arr = ['01','05','08','06','10','02','04']
sorted_arr = np.sort(arr)
print(sorted_arr)
>> array(['01', '02', '04', '05', '06', '08', '10'])
 
PREVIOUS NEXT
Tagged: #sort #np #list #string
ADD COMMENT
Topic
Name
4+2 =