order in pagination

maybe:

@post_pages, @posts = paginate :posts, :per_page => 5, :order => 'id
desc'

or

@post_pages, @posts = paginate :posts, :per_page => 5, :order => 'id
asc'

How did u fix it?

Surely the :order should be in your find, not in your pagination?