How to keep key mappings from re-ordering when remapped

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.