fix sorting menu