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)
{
.........
How to Sort list of Products
Re: How to Sort list of Products
ProductCollection productByManList = ProductDataSource.LoadForCriteria("Manufacturer = 3", "name ASC");
The second argument "name ASC" is the Order By sql statement.
Scott
The second argument "name ASC" is the Order By sql statement.
Scott
Re: How to Sort list of Products
thanks again Scott