Reviewed & tested by the community
Project:
Input Formats
Version:
6.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2011 at 15:13 UTC
Updated:
2 Apr 2013 at 12:54 UTC
When the input filters are loaded the filters are sorted by their key name to order them by weight. Unfortunately they key name also includes the module name and delta so the default sort uses string comparisons so you end up with odd orderings (e.g. 10 will come before 2 and -1 before -3). To fix this we need to specify numeric comparisons should be used. This will convert the keys to numbers as documented here: http://www.php.net/manual/en/language.types.string.php#language.types.st...
I've attached a patch for this fix.
| Comment | File | Size | Author |
|---|---|---|---|
| filter-weight-bug.patch | 851 bytes | Dean Reilly |
Comments
Comment #1
nterbogt commentedI've applied this patch and tested it. It works well for me. Can we see this make it to the next release? (is there going to be a next release?)
Comment #2
ckngpatch works great.