Changed sorting by popularity field in product entity to it's rating.