arr = ['01','05','08','06','10','02','04'] sorted_arr = np.sort(arr) print(sorted_arr) >> array(['01', '02', '04', '05', '06', '08', '10'])