$sort = Value::
sortByAccess($a,
$b);
if ($sort) { return $sort;
} $sort = Value::
sortByName($a,
$b);
if ($sort) { return $sort;
} return InstanceValue::
sortByHierarchy($a->owner_class,
$b->owner_class
);
} /**
* Sorts an array of Value.
*
* @param Value[] $contents Object properties to sort
*
* @return Value[]
*/
public static function sortProperties(array
$contents, int
$sort): array
{