title: Magento set products category sort number programmatically
body: <p>I am importing data from oscommerce to magento for one of my clients.</p>
  
  <p>All data including products, categories, and customers has been imported successfully. The last thing left is adding a product sort number after setting their categories.</p>
  
  <p>I need following steps:</p>
  
  <p>Import products -> assign categories to product -> set product sort order (display order) from the oscommerce table.</p>
  
  <p>I searched a lot, but I was not able to find the method to set a product's sort order in a particular category.</p>
  
  <p>Any help will be deeply appreciated.</p>