Sort clause added (not tested)