I don't use wishlists, so I'm not familiar with the code. But you seem to have identified the piece of code which is used if the customer wants to move one of the products in their wishlist to the basket. What you should be looking at is inside InitializePageContent()
Code:
String CartItemsXmlPackage = AppLogic.AppConfig("XmlPackage.WishListPageItems");
if (CartItemsXmlPackage.Length != 0)
{
CartItems.Text = AppLogic.RunXmlPackage(CartItemsXmlPackage, base.GetParser, ThisCustomer, SkinID, String.Empty, String.Empty, true, true);
}
else
{
CartItems.Text = cart.DisplayItems(false, ThisCustomer, true) + "<br/>";
int ItemsInWishListNow = ShoppingCart.NumItems(ThisCustomer.CustomerID, CartTypeEnum.WishCart);
if (cart.CartType == CartTypeEnum.WishCart)
{
if (ThisCustomer != null && !ThisCustomer.IsRegistered && !AppLogic.AppConfigBool("DisallowAnonCustomerToCreateWishlist") && ItemsInWishListNow > 0)
{
lblWishlistMessage.Text = AppLogic.GetString("wishlist.aspx.4", SkinID, ThisCustomer.LocaleSetting);
}
else
{
lblWishlistMessage.Visible = false;
}
}
}
This seems to be saying if there isn't an XMLPackage (defined by the AppConfig 'XMLPackage.WishListPageItems' - presumably for a customised view) then use cart.DisplayItems() which means you'd need to customise that c# code to get it in a different order. Alternatively, create an XMLPackage which sorts in the correct order and change the AppConfig to tell it about your new package.