Implemented sorting functionality for products on 'category' page.