Answer the question
In order to leave comments, you need to log in
How to sort a list in a dropdown select?
There is a database table with cities in alphabetical order.
In the drop-down menu of the select type, you need to load a list of cities from the database, but display certain 5-6 cities (the largest in terms of population) first, and the rest of the cities in alphabetical order. For example:
Киев
Днепропетровск
Харьков
Авдеевка
Артёмовск
Волноваха
Горловка
Дебальцево
....
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question