You are here

function merci_by_vid in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2

Same name and namespace in other branches
  1. 6.2 includes/api.inc \merci_by_vid()
  2. 6 merci.module \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 899
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;
}