fixed sort compare function refs item:462
Merge branch 'develop' into bug/fix-inventory-rules-sort
moved controller function from router state object
Merge pull request #322 from musamusa/bug/fix-inventory-rules-sort

Bug/ Fix Inventory rules stock count sort order