Implement the qsort using a different construct (where)