add quick3way sort and select method