some details about sort mehtod