[FIX] don't mess up search's id order
Merge pull request #40 from hbrunn/7.0-fix-category-order

[FIX] don't mess up search's id order