I have the following code
CustomerModel[] customerModel ;
customerModel = GetCustomerModel(customerReport);
Now this CustomerModel
class has a string property called DealType
with possible values of "CostOnly","Edlp","NonPromoted","Periodic"
.
All I want is to sort the customerModel array order by DealType property in the follwing order.
"NonPromoted",
"Edlp",
"Periodic",
"CostOnly"
What is the most optimal approach to solve this?
Thanks in Advance.