little bugfix -> ksort the values !
[old-projects.git] / philter / philter / include / rule.inc.php
index 4c9ecd7..6ab2116 100644 (file)
@@ -115,6 +115,7 @@ class Rule {
 
     function to_js() {
         $matches = array();
+        ksort($this->matches);
         foreach($this->matches as $data) {
             $data = array_map('to_js_str', $data);
             $matches[] = '[' . implode(',', $data) . ']';