sorting a select(2) list by option value or text

More
7 years 6 months ago #67799 by prathumwan
Is there a way for sorting a select(2) list by option value or text?

This is useful if using language string labels and sorting differs on the translated value or if it is just numbered.

ID1="first road"
ID2="second road"
ID3="third road"
ID4="fourth road"
ID5="fifth road"

ID1="Road 4"
ID2="Road 1"
ID3="Road 2"
ID4="Road 5"
ID5="Road 3"

ID1="famous road"
ID2="beach road"
ID3="oneway road"
ID4="all new road"
ID5="4 lane road"

Attachments:

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.649 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline