How to keep key mappings from re-ordering when remapped

I’m setting up key mapping in my game and one thing I’ve noticed is that initially they come in the order they are in the context (that’s the way I want them). But it seems that once I remap several, save, close and then reopen the game, the ones that were remapped are now in a different order (appears to be alphabetical by Name). I think this is because these remaps are now in the save file which is being read from first. So all saved remaps appear at the top. Then the others from the context are loaded in.

How do I get them to always come in, in the same order as the context?
This is how I’m currently getting the key mapping rows.

I’ve found the solution. Before I was getting the key mapping rows.

But now I’ve gotten rid of that and in the Sort Mappings function I just use a Input Mapping Context variable set with the context I’m using and loop through it so that the order is always the same. Then I check each key mapping to see if it’s player mappable and if it is I get the player key mapping.