[FX.php List] Sorting the found records

Bob Patin bob at patin.com
Mon Nov 6 14:25:32 MST 2006


Add this line to your FIND query for each sort that you want to do:

$query->AddSortParam('sort_field_name','ascend');

"Ascend" would of course be "Descend" for a descending sort...


On Nov 6, 2006, at 3:21 PM, Jerry Do wrote:

> Hello,
>
> I have simple database that contain name_first, name_last,dob,...ect..
> I was able to find it through FX.php and display it on a table.
> I would like to sort the found set based on first name, lastname,  
> or dob depend on the user  without going back to do another find  
> from Filemaker.  I am thinking that I will have to use an array or  
> something like that, but I haven't grasp the logic yet.
> Any suggestion is welcome.
>
> Thank you,
> JD
>
> _________________________________________________________________
> Get FREE company branded e-mail accounts and business Web site from  
> Microsoft Office Live http://clk.atdmt.com/MRT/go/ 
> mcrssaub0050001411mrt/direct/01/
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list