function merci_by_vid in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same name and namespace in other branches
- 6 merci.module \merci_by_vid()
- 7.2 includes/api.inc \merci_by_vid()
Sort by vid
Parameters
$a: The first object.
$b: The second object
Return value
0,1, or -1 indicating which object has a higher VID
File
- includes/
api.inc, line 903 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_by_vid() {
if ($a->vid == $b->vid) {
return 0;
}
return $a->vid > $b->vid ? -1 : 1;
}