X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Flinkit%2Fsrc%2FMatcherCollection.php;fp=web%2Fmodules%2Fcontrib%2Flinkit%2Fsrc%2FMatcherCollection.php;h=b7124c2f3444a58ad9c891ab63fc8fa5c3801997;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/linkit/src/MatcherCollection.php b/web/modules/contrib/linkit/src/MatcherCollection.php new file mode 100644 index 000000000..b7124c2f3 --- /dev/null +++ b/web/modules/contrib/linkit/src/MatcherCollection.php @@ -0,0 +1,46 @@ +get($aID)->getWeight(); + $b_weight = $this->get($bID)->getWeight(); + if ($a_weight == $b_weight) { + return strnatcasecmp($this->get($aID)->getLabel(), $this->get($bID)->getLabel()); + } + + return ($a_weight < $b_weight) ? -1 : 1; + } + +}