improve performance a little and add inventory counts to product sorting
Merge pull request #2 from pdamer/master

Adding inventory counts to sort page.