From: cajus Date: Wed, 2 Sep 2009 11:46:19 +0000 (+0000) Subject: Moved function away X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4bc8e4829781eea624d00795f0f865ea32b7ad93;p=gosa.git Moved function away git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14191 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index 373b37e9b..3a9e38d75 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -127,13 +127,6 @@ class filter { } } - // Sort elements for element length to allow proper replacing later on - function strlenSort($a, $b) { - if (strlen($a['tag']) == strlen($b['tag'])) { - return 0; - } - return (strlen($a['tag']) < strlen($b['tag']) ? -1 : 1); - } uasort($this->elements, 'strlenSort'); $this->elements= array_reverse($this->elements); @@ -557,4 +550,12 @@ class filter { } +// Sort elements for element length to allow proper replacing later on +function strlenSort($a, $b) { + if (strlen($a['tag']) == strlen($b['tag'])) { + return 0; + } + return (strlen($a['tag']) < strlen($b['tag']) ? -1 : 1); +} + ?>