[FX.php List] Best way to sort?

Steven Thoms sthoms at wavecomm.com
Fri May 18 06:43:37 MDT 2012


Just a thought,

Since you are searching by creation date descending, and unsorted  
records will always come out sorted by creation date ascending, you  
could not sort the query and use:

array_reverse($result['data'], true);

which would always be faster than a FileMaker sort.

Steve

On May 17, 2012, at 4:29 PM, Denis Somar wrote:

> Any best advice on the optimal way to sort.
>
> I'm not doing anything wild other than sorting in descending order  
> by creation date (and I have this field ), but wanted to know if  
> there's an optimal way to do it.  There can be between 1-(infinity  
> and beyond) most likely 100 results sorted.
>
> Many thanks,
> Denis
> _______________________________________________
> 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