a version of dict that keeps keys in insertion resp. sorted order