I have a JSON file that has file names and a description for each as the key value pairs. However using OrderedDict when I try to sort the file it results in the order 0.jpg 1.jpg 10.jpg 11 ..... 2 20 and so on.
op={int(k) : v for k, v in output.items()}
I tried doing this but it returns a ValueError. The error is as follows
ValueError: invalid literal for int() with base 10: '1520.png'