Improvement for filtering items in shop.

Although it is not implemented in the GUI yet.