added ability to paginate and use sort order in CSV

This adds the ability to use the sort order in the CSV output. Resolves issue https://github.com/activeadmin/activeadmin/issues/3269
In either case, I'll have to set `view_context` in an instance variable. This was the reason why I put everything in the same method.