GEOMESA-457 Optimize sorting of results

* Sorts results based on SortBy parameters