I am try to sort my product collection.
At first it should be sorted by Ascending Order (1,2,3…) and then by other character like NULL …
$collection = $this->_productCollectionFactory->create();
$collection->setVisibility($this->_catalogProductVisibility->getVisibleInCatalogIds());
$collection->addStoreFilter()
->addMinimalPrice()
->addFinalPrice()
->addTaxPercents()
->setPageSize($limit)
->addAttributeToSelect(’*’)
->addAttributeToSort(‘featuredproduct_sort_order’, ‘ASC’) ;
$collection->addAttributeToFilter(‘is_saleable’, 1, ‘left’);
$collection->addAttributeToFilter(‘et_featured’, ‘1’);
But My code is displaying Null as first.