A Tiny Little Rant
lokakuu 31, 2008
Oh why, oh why do the LINQ sorting extension methods have to be OrderBy(Func) and OrderByDescending(Func)?
I’d find it so much less confusing if they were even OrderByAscending(Func) and OrderByDescending(Func), or OrderBy(Func, SortOrder), or the like.
Now I have to actually think every time I sort, “Okay, OrderBy was the one that sorts, um, descending? Was that, with small values first?” All in all, calling sort orders ‘ascending’ or ‘descending’ is the daftest thing in the world to do; the numbers don’t suddenly rise anywhere or go downwards, they get bigger and smaller. Or maybe it’s just me and my limited cognitive capabilities