Lines Matching +full:- +full:b
23 * @param AbstractNode $b
26 public static function sortById(AbstractNode $a, AbstractNode $b): int argument
29 $pathA = explode(':', $a->getId());
30 $pathB = explode(':', $b->getId());
46 * @param AbstractNode $b
49 public static function sortByNsFirstThenId(AbstractNode $a, AbstractNode $b): int argument
51 $res = self::sortByNsFirst($a, $b);
52 if ($res === 0) $res = self::sortById($a, $b);
60 * @param AbstractNode $b
63 public static function sortByTitle(AbstractNode $a, AbstractNode $b): int argument
65 return Sort::strcmp($a->getTitle(), $b->getTitle());
72 * @param AbstractNode $b
75 public static function sortByNsFirstThenTitle(AbstractNode $a, AbstractNode $b): int argument
77 $res = self::sortByNsFirst($a, $b);
78 if ($res === 0) $res = self::sortByTitle($a, $b);
86 * @param AbstractNode $b
89 protected static function sortByNsFirst(AbstractNode $a, AbstractNode $b): int argument
92 $isBaNs = ($b instanceof WikiNamespace);
96 return -1;