I want to sort a (JamMulai)
that are string but the value are numbers. I'd like (JamMulai)
to sort numerically
my query:
var query = from j in db.JadwalKuliah
orderby j.JamMulai
select j
and j.JamMulai
value is like { "13", "12,3", "7", "15", "10,3"};
output:
(10,3), (12,3), 13, 15, 7
I'd like:
7, (10,3), (12,3), 13, 15
I'm trying to convert to double :
var query = from j in db.JadwalKuliah
orderby Convert.ToDouble(j.JamMulai)
select j
but the error is:
Additional information: LINQ to Entities does not recognize the method 'Double ToDouble(System.String)' method, and this method cannot be translated into a store expression.