Rails / Kaminari - How to order a paginated array? <p>I'm having a problem <strong>ordering</strong> an array that I've successfully paginated with Kaminari.</p> <p>In my controller I have:</p> <pre><code>@things = @friend_things + @user_things @results = Kaminari.paginate_array(@things).page(params[:page]).per(20) </code></pre> <p>I want to have the final <code>@results</code> array ordered by <code>:created_at</code>, but have had no luck getting ordering to work with the generic array wrapper that Kaminari provides. Is there a way to set the order in the Kaminari wrapper? Otherwise what would be the best way? Thanks.</p>