I'm trying to apply custom orderby logic over a list object. Currently I'm populating a dropdown for plan max and plan deductible using the list object and after applying order by this following value 0 comes as default for plan deductible. But I want to customize this order of plan deductible, instead of 0(zero) I want to display next highest value available (i.e 100 for this case). Here is the output Dropdown
I've have gone through this below link and applied this logic, but it is not working in my case Linq OrderBy custom order Custom Linq Ordering
Here is the code
int[] customOrder = { 100, 0, 50, 150, 250, 500, 1000, 2500, 5000, 10000, 50000 };
var Result = lstQuatationResult
.OrderBy(x => x.planMaximum)
.OrderBy(x => x.planDeductible)
.OrderBy(x => Array.IndexOf(customOrder, x));
Thanks in advance.