Sort by SEX and NAME in descending order with the NODUPLICATES option.
call send(tabid, '_sort', 'sex descending name', '/noduplicates'); return;