create function for sort by price
clean project