Added new functions for sort by category and price