In your code you're actually using two different GetFeaturedProducts methods. The first method is taking these parameters:
Code: Select all
int categoryId, bool publicOnly, int maximumRows, int startRowIndex
and the second method is taking these parameters:
Code: Select all
int categoryId, bool publicOnly, bool includeOutOfStockItems, string sortExpression
However, I don't think OrderBy is a valid field for the GetFeaturedProducts method. You can try it by changing the "" to "OrderBy". The GetFeaturedProducts context, it's just based on whether the IsFeatured flag is set.
Another option is to create a new category where you put your featured products. Then you can use the CatalogNodeDataSource and get your products out in OrderBy order.