From eca2e192f5a58a8eeef0fd16f8e5f021fdae662f Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Wed, 10 Sep 2003 18:48:43 +0000 Subject: [PATCH] little bugfix -> ksort the values ! --- philter/philter/include/rule.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/philter/philter/include/rule.inc.php b/philter/philter/include/rule.inc.php index 4c9ecd7..6ab2116 100644 --- a/philter/philter/include/rule.inc.php +++ b/philter/philter/include/rule.inc.php @@ -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) . ']'; -- 2.1.4