How to get data from two table and order by second table Datamapper
you should create another table for rating where product id and user id and rating value must have with primary key rating id.
then select the product according to rating value.
you should create another table for rating where product id and user id and rating value must have with primary key rating id.
then select the product according to rating value.