Adds SortedIteratingSystem

to iterate over the entities in an order defined by a comparator
This lets the user modify the array adding or removing entities, which would break things. Better to use `ImmutableArray`.