Vertical order Print

getting wrong order in output

Hey @RULEREMPIRES
Use Tree Map instead of HashMap.
No need to use sort fun

question Done with Tree Map but i would like to know mistake in earlier code.

In SortMap fun
Sorting order is different .