I think that will be not as simple as reorder them at module_troops.py. If the heroes include all companions, all kingdom lords and kingdom family members, reorder them will make us have to edit the scripts that use range like kingdom_heroes_begin and kingdom_heroes_end.
But you gave me the idea, we should sort them with another paramater. I think we can give them an additional slot according to their name in alphabetical order.
Thanks..