Sort: we needed a real sort so wrote CSPL_Sort_mergesort(), sorts in place