Entities sorting, part 0.