Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1149

Some states/provinces are not listed alphabetically

    Details

      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

          Activity

          admin Paul Phillips created issue -
          admin Paul Phillips made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Minor [ 4 ]
          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          States are sorted by key rather than value. Since some provinces are numeric rather than alphabetical, like the first 20 or so provinces in Italy, they can appear mixed. We can consider sorting by value (name) instead.

          Show
          tyson Tyson Phillips (Inactive) added a comment - States are sorted by key rather than value. Since some provinces are numeric rather than alphabetical, like the first 20 or so provinces in Italy, they can appear mixed. We can consider sorting by value (name) instead.
          admin Paul Phillips made changes -
          Fix Version/s 3.2.0-b2 [ 10501 ]
          Fix Version/s 3.2.0-b1 [ 10002 ]
          tyson Tyson Phillips (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          tyson Tyson Phillips (Inactive) made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          tyson Tyson Phillips (Inactive) made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          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.

          Show
          tyson Tyson Phillips (Inactive) added a comment - 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.
          tyson Tyson Phillips (Inactive) made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          tyson Tyson Phillips (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue blocks CORE-1205 [ CORE-1205 ]

            People

            • Assignee:
              tyson Tyson Phillips (Inactive)
              Reporter:
              admin Paul Phillips
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                2/May/14