there is 4 default dolphin modules that sort the country list. Why they do this i don't know. It makes the sort function in pre values useless.
Any way the 4 modules are:
Ads, events, groups, and store. Five files will need to be changed for this to work.
What I do is remove US __United States from the bottom of the pre defined values in admin.
I then replace AF Afganastan with US __United States and click save at the bottom.
Option 2: Click the up arrow a million times to get US to the top of the list.
next open file:
/modules/boonex/ads/classes/BxAdsFormAdd.php around line 886 you will see:
asort($aCountries) change this to: //asort($aCountries) and save it.
Next open file:
/modules/boonex/events/classes/BxEventsFormAdd.php around line 79 you will see:
asort($aCountries) change this to: //asort($aCountries) and save it.
Next open file:
/modules/boonex/events/classes/BxEventsFormSearch.php around line 15 you will see:
asort($aCountries) change this to: //asort($aCountries) and save it.
Next open file:
/modules/boonex/groups/classes/BxGroupsAdd.php around line 77 you will see:
asort($aCountries) change this to: //asort($aCountries) and save it.
Next open file:
/modules/boonex/store/classes/BxStoreFormAdd.php around line 52 you will see:
asort($aCountries) change this to: //asort($aCountries) and save it.
I had it set to asort($aCountries) change this to: ($aCountries) and save it.
Changed it to: per modzzz below post:
asort($aCountries) change this to: //asort($aCountries) and save it.
Now at this point you can order the pre defined list to your liking for countries and in those modules they will display right. If you have any 3rd party modules you will need to do the same by removing asort from the code.
I thought at one point if you had a country selected in your profile it would pick up on that but i could be wrong about that.
Seems like a lot but really should only take about 10 minutes. Also upgrades will kill your changes but you don't have to worry about that for another year or two.