make sure pages sorted by position when calling arrange()