Sorting keys in a dictionary with multiple keys while keeping certain keys together
I have a Dictionary with keys of type Setting, where setting is a struct with members mCategory (String), mIndex (int), and mDescription (String). Some of the keys are unique – there will be at most one with the same mCategory. These have mIndex set to -INF and their descriptions are arbitrary.