Fix use of SortBy in csw.getrecords2
Create some tests for sorting