fix sorting on pulldowns