Pagination / Article Sort Question

I feel like I’m missing something simple here. My articles are sorting correctly (most recent first) but the pages seem to separate them incorrectly:

Page 1
Article 6
Article 7
Article 8
Article 9

Page 2
Article 1
Article 2
Article 3
Article 4
Article 5

How do I get Article 1 to show up on Page 1?

Current code

<?php $tag = urldecode(param('tag'));
$articles = $pages->find('blog')
  ->children()
  ->visible()
  ->filterBy('tags', $tag, ',')
  ->flip()
  ->paginate(5);

Have you tried removing the call to flip()?

Also, I don’t completely understand your desired sorting order. If you want to use most recent first, shouldn’t article 9 be on top of the list?

Thanks, re-ordering the articles was the right thing to do and resolved the issue.