It might be better to also order pages by 'tree_id'.