Please bear with me... I'm a database professional and this is what I normally do in the database when you need some quick custom sorting...
select *
from <table>
where columnname = 'something'
order by case column2 when 'c' then 1 when 'z' then 2 end
I'm trying to replicate that in C# using DataTables. Short of creating comparison functions outlined here.. Is there a simpler/quicker/dirtier way to do this...
This is what I originally tried to do...
foreach(DataRow row in dt.Select("column1 = false","Column2 ASC, case Column3 when 'something' then 1 when 'somethingelse' then 2 else 3 end"))