var tecs = from t in db.TECHNICs where t.belt == belt && t.name != name orderby t.Type.ID orderby t.Type.ID == 9 ? 0 : 1 select t;