Sorting of ordered dictionary based upon keys