I am fetching Bestsellers like this:
protected $_collectionFactory;
\Magento\Sales\Model\ResourceModel\Report\Bestsellers\CollectionFactory $collectionFactory,
$this->_collectionFactory = $collectionFactory;
$bestSellerProdcutCollection = $this->_collectionFactory->create()
->setModel('Magento\Catalog\Model\Product')
->setPageSize(8)
->setPeriod('month');
Issue is this that this is not giving me latest month entry first. I mean if in collection I have records from 2012 to 2018, I am getting first records of 2012. And as I need only 8 records so every time getting the same records.
Not getting how I can sort and get 2018 records first ?