I am creating a dictionary in python Flask that contains strings. It's order like this :
dict = {01:'string1', 02:'string', 03:'string3',..., 10:'string10', 11:'string11'}
The order to sort is 0,1,2,...,9
Once I pass this dict to my javascript, the dictionary is order with this sort method :
dict = {10:'string10', 11:'string11',...,01:'string1', 02:'string', 03:'string3' }
The sort order is 1,2,3,...,9,0
How can I keep my sort order when I pass a dictionary from python flask to JS