Added sorting for select dropdowns