implement sort dialog which let user to select sort order