how can i put a field dropdown in alphabetical order?

Discussion in 'Programming' started by visualkreations, Dec 23, 2010.

  1. #1
    I have a big dropdown field that is taking the values from a database, i need this dropdown to always be in alphabetical order, is there an easy way i can do this?

    Thanks.
     
    visualkreations, Dec 23, 2010 IP
  2. shofstetter

    shofstetter Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    120
    #2
    when you fetch the values from the database use a sort such as "ORDER BY field ASC"
     
    shofstetter, Dec 23, 2010 IP