From 590aaa80fd6d16af4bb5510549813209962f49bb Mon Sep 17 00:00:00 2001
From: Dean Reilly <dean.reilly@gmail.com>
Date: Tue, 18 Oct 2011 16:06:19 +0100
Subject: [PATCH] Format weight bug: Changed sorting method for formats from
 default to numeric.

---
 input_formats.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/input_formats.module b/input_formats.module
index 36b7bbb..d721276 100644
--- a/input_formats.module
+++ b/input_formats.module
@@ -789,7 +789,7 @@ function input_formats_load_all($reset = FALSE) {
             $apply_filters[$weight . ' ' . $module . ' ' . $delta] = array('module' => $module, 'delta' => $delta);
           }
         }
-        ksort($apply_filters);
+        ksort($apply_filters, SORT_NUMERIC);
         $input_format->apply_filters = $apply_filters;
       }
     }
-- 
1.7.5.4

