id == $obj2->id) return 0; if($obj->id > $obj->id) return -1; return 1; } usort("sort_",$object_ar); ?>