SELECT valueFROM fooORDER BY (CASE WHEN x IS NULL THEN 1 ELSE 0 END), x
foo.OrderBy(i => i.x == null ? 1 : 0) .ThenBy(i => i.x);