Add sqsort definition