What will be the correct way to sort the list of strings where I need elements starting with the underscore '_' at the bottom of the list, otherwise everything will be in alphabetical order.
Now I'm doing something like this,
autoList.OrderBy(a => a.StartsWith("_") ? "ZZZZZZ"+a : a )
Bala R Jun. 09 '10 at 15:47 2010-06-09 15:47
source share