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.

CommentFileSizeAuthor
filter-weight-bug.patch851 bytesDean Reilly

Comments

nterbogt’s picture

Status: Needs review » Reviewed & tested by the community

I'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?)

ckng’s picture

patch works great.