Here is the problem presented there and the accepted answer:
Is there a simple way to sort the following Python d:dict by value of key '#1'. The output should be as shown in o:dict ? I want to be able to print in different kind of orders like a html tabel with asc/desc key. I know how to sort a simple key:value with the sorted() but cant figure out how to do it, when the value is as shown below !! I'm using CPython 3.9
Does this topic solve your question?
Here is the problem presented there and the accepted answer: