added ability to use sort order in CSV
refactored CSVbuilder build method and add tests for build method
Merge pull request #3375 from kushkella/csv-custom-sort-order

added ability to paginate and use sort order in CSV