Sorting challenge
Posted by Felix Geisendörfer, on Oct 25, 2007 - in PHP & CakePHP » Other
Quick challenge,
lets say you have an array like this:
php
-
);
and you want to iterate through your products by Product.ordering ASC. Whats the fastest way to do this? I just came up with this nifty little attempt, but I'd love to see some other solutions. (Rules: Don't use anything eval()'ish, but anything you find in Cake 1.2 can be used).
php
-
debug($product);
-
}
-- Felix Geisendörfer aka the_undefined