Is there a method to make dictionary lexicographical order ignoring upper and lowercase? Now I know make a dictionary lexicographical order but still confused how to ignore lowercase and uppercase. Here are some codes I have tried.
dic={'subject':'math','name':'','PS':'$'}
for key,value in sorted(dic.items()):
print(key+'='+value)
Now I have a result that PS=$ is in the first, but I wanna it in the middle, like this:
name=
PS=$
subject=math