for test, ensure sorted lists in dict