Entity sorting simplified.