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
Cool, I can do that. Just to confirm here, does the refactor I suggested sound good if I move `@collection = ...` to first line of `build` method?