You can use SqlFunctions.IsNumeric in your query to map to IsNumeric on the Sql server.
Something along the lines of:
var results = from c in customers
where c.companyId = companyId
orderby SqlFunctions.IsNumeric(c.customerName) == 1 ? 1 : 0, c.customerName
select new { c.customerId, c.customerName, c.customerCode };
source
share