I propose sorting rich text icons by their entity's internal 'order' string so that icons in train stops are ordered the same as the player's inventory. I feel this ordering is very intuitive.
In the below example note how the science stops, circuit stops are all next to each other and 'in order'. The current behaviour on the left, while logical, appears nonsensical in comparison.
I have implemented this as a mod, with a separate UI for listing the stops: https://mods.factorio.com/mod/ordered-r ... rain-stops