On Wed, Sep 24, 2008 at 12:34 PM, Gordon Stewart <[EMAIL PROTECTED]> wrote: > Is there a way to alter the top line - To sort by value first - then > display the table ??
Hi Gordon, I've had a look at the html_table function in the smarty source and it does not actually sort the data, it simply steps through it assuming numeric indexes. You might consider the following line in your php before you pass $myArray to smarty... $myArray = array_values($myArray); This will remove all the arrays keys and replace them with normal, numerical indexes. I *think* this will fix your problem. Phill http://milk-hub.net