-
- $ret = $this->search($expression, $bnum);
- if(!is_array($ret))
- return $ret;
-
- // Inline function - Not nice, but still..
- function cmp($a,$b) {
- if($a["backend"] > $b["backend"])
- return 1;
- else if($a["backend"] < $b["backend"])
- return -1;
-
- return (strtolower($a["name"]) > strtolower($b["name"])) ? 1 : -1;
- }
-
- usort($ret, 'cmp');
- return $ret;