sort available values in wp modals