How to Sort list of Products
Posted: Wed Aug 06, 2008 11:52 am
This gives a list of products for a Manufacturer.
But how can I sort it by Name, ASC ???
ProductCollection productByManList = ProductDataSource.LoadForCriteria("ManufacturerId = 3");
foreach (Product p in productByManList)
{
...............
Same here, I want to sort this by Name, ASC :
ManufacturerCollection allMans = ManufacturerDataSource.LoadForStore();
foreach (Manufacturer thisMan in allMans)
{
.........
But how can I sort it by Name, ASC ???
ProductCollection productByManList = ProductDataSource.LoadForCriteria("ManufacturerId = 3");
foreach (Product p in productByManList)
{
...............
Same here, I want to sort this by Name, ASC :
ManufacturerCollection allMans = ManufacturerDataSource.LoadForStore();
foreach (Manufacturer thisMan in allMans)
{
.........