Ken Snyder wrote:
...Probably because it requires a wrapper function to be a one-stop
utility. I'd suggest a function with the following API:
array_order_by($events, array('date'=>SORT_ASC), SORT_REGULAR);
- Ken
Here's a array_multisort() wrapper function I threw together. I did some
cursory tests and it works.
// example usage
Recordset::orderBy($events, array('date' => SORT_ASC), SORT_REGULAR);
// alternate usage
Recordset::orderBy($events, 'date', SORT_REGULAR);
http://rafb.net/p/gbrNmf48.html
_______________________________________________
UPHPU mailing list
UPHPU@uphpu.org
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net