Properly sort selected entities by owner
Fixes #4425. Refs #1807, #4167. Fixes rP18979
Reviewed by: mimo
Differential Revision: https://code.wildfiregames.com/D123
Doesn't extend tests but breaks them
In null, @elexis wrote: Doesn't extend tests but breaks them
Sorry, the tests (from D90) were not committed yet and survived the revert