quick3way sort