SyntaxFix
Write A Post
Hire A Developer
Questions
if you're using php oop you might need to change to:
public static function cmp($a, $b) { return strcmp($a->name, $b->name); } //in this case FUNCTION_NAME would be cmp usort($your_data, array('YOUR_CLASS_NAME','FUNCTION_NAME'));