Ordered List

Results 1 to 4 of 4

Thread: Ordered List

  1. #1
    Boru Guest

    Default Ordered List

    I would like to print to the user a list (of about 30 items) in order. This order would be numerical, based on a corresponding value for each item. How do this, print a list in numerical order?

  2. #2
    Tristan Guest

    Default RE: Ordered List

    "SELECT items FROM table ORDER BY correspondingvalue"

  3. #3
    LeeAnnie Guest

    Default RE: Ordered List

    You can do this two ways:<BR><BR>1) If your values are coming from a database, then just use ORDER BY.<BR>Example:<BR>SELECT items FROM yourTable ORDER BY items;<BR><BR>2) Populate an array and then call a function such as Quicksort to alphabetize it. Quicksort can be found at http://www.4guysfromrolla.com/webtech/012799-1.shtml<BR><BR>HTH

  4. #4
    Boru Guest

    Default RE: Ordered List

    No database stuff: dont know how to do that yet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts