I use Python 3.7 to build a dictionary, and want to sort the dictionary by the value of keys.
For example, I have dictionary like this:
Dict = ["r_1":...; "r_10":...; "r_11":...;....; "r_2":...]
But I want it to be
Dict = ["r_1":...; "r_2":...; ....; "r_10":...]
I only find ways to sort keys or values, but no solution for sorting the value of keys.
** I found multiple question to sort keys only, but py3 will automatically sort them in the order of "r_1", "r_10", "r_11", ..., "r_2". Those questions are different from this one.