add quick3way sort