Select Year From MyTable Order By Cast( [Year] as Int ) Desc
Same thing I am trying to do in the linq order by. It's not working. I have column that is defined in the data base as string (Varchar) and I need to cast/convert it to integer before I need to sort it. What should be my linq statement?
Thanks in advance.