Quantcast
Viewing all articles
Browse latest Browse all 79901

Sort the option set based on the back end option set value.

Hello,

I have tried to sort the option set value but it is sorting based on the Alphabet , it should be sorted based on option value

I tried the below code,but not sorting based on the option set value,please kindly do the needful

QueryExpression filBusinessInventory = new QueryExpression("new_filbusinessinventoryfa");
filBusinessInventory.Criteria.AddCondition("createdon", ConditionOperator.On, dateString2);
filBusinessInventory.Criteria.AddCondition("statecode", ConditionOperator.Equal, "Active");
filBusinessInventory.ColumnSet = new ColumnSet("createdon", "new_customer", "new_month", "new_year");
filBusinessInventory.AddOrder("new_month", OrderType.Ascending);
filBusinessInventory.Orders.Add(new OrderExpression("new_month", OrderType.Descending));


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>