Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1.0
-
Fix Version/s: 3.2.0-b2
-
Component/s: Client Interface, Staff Interface
-
Labels:None
Description
States & provinces for some countries are not listed alphabetically in their drop downs.
This has been confirmed for Italy in the create contact form on the client profile. Other countries are affected as well. See http://www.blesta.com/forums/index.php?/topic/2402-order-the-state-field-in-descending-a-z/
My guess is that we may not be sorting these by the state name descending and that most appear alphabetically because of their insert order.
Issue Links
- blocks
-
CORE-1205 Order Plugin: Improve sorting states/provinces by name
-
- Closed
-
This issue is brought up by how browsers choose to interpret the ECMAScript specifications for iterating over object properties in Javascript.
Blesta correctly sorts the states before they are sent to the browser, but they are then not rendered in the browser correctly due to this interpretation. The specifications maintain an "unordered list" (similar to a hashmap) for object properties, so the browser interpretation cannot be relied upon.