I have an array list of List<string> that contains values in the following order [100g, 1.5kg, 250g] now when I try to sort them I am not getting the expected result and it is sorting in the following order.
I am using array.OrderBy(x => x);
[1.5kg, 100g, 250g]
How can I sort them according to their weight?
the correct should be:
[100g, 250g, 1.5kg]
