For what it's worth, doing this ensures the order is maintained and so similar could be done in `#get_entities`.