GetSimple Support Forum
Using subval_sort? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: Using subval_sort? (/showthread.php?tid=1068)



Using subval_sort? - RobA - 2010-10-20

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>


Using subval_sort? - ccagle8 - 2010-10-20

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/source/browse/trunk/admin/inc/basic.php#116


Using subval_sort? - RobA - 2010-10-20

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>