GetSimple Support Forum

Full Version: Using subval_sort?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi-

I implemented a subval_sort function in my functions.php only to discover that one already exists in the core.

Is it safe to use the one in the core? Or should I write my own with a different name?

-Rob A>
They should both be the same I am sure... you are free to use the GetSimple version since it's used everywhere and wont be going anywhere any time soon.

http://code.google.com/p/get-simple-cms/...ic.php#116
Yours has a bit more error checking Blush

I guess to be paranoid I could include it wrapped in a !function_exists check.

Thanks for the quick reply though.

-Rob A>