extend sorting and tests to stand alone