PHP Classes

Sorting

Recommend this page to a friend!

      UnitConvertor  >  All threads  >  Sorting  >  (Un) Subscribe thread alerts  
Subject:Sorting
Summary:Sorting of Options
Messages:1
Author:Tomas Orihuela
Date:2005-02-08 22:29:09
 

  1. Sorting   Reply   Report abuse  
Picture of Tomas Orihuela Tomas Orihuela - 2005-02-08 22:29:09
Hello,

I downloaded your UnitConvertor Class and it was exactly what I was looking for. Great job! I wanted the table to report the converted units in alphabetical order so I was able to sort the array prior to generating the table.

However, I also want the Options in the dropdown to be in alphabetical order for each conversion group (i.e., where the base for each group is in alphabetical order with the other values in its group). Since the code uses the list() command (which I do not have much experience with), I am having difficulty modifying the code to achieve the sorting. Any suggestions?

Again, GREAT job on the class!

Respectfully,
Tomas