Extension Method of the Day: OrderBy with a Descending Flag
The title should say it all. Not sure why this didn’t make it into the System.Linq.Enumerable class, physician but this seems like a no-brainer. You need to sort a collection, pills but whether you sort ascending or descending is determined by a boolean argument instead of having to call a different method for each scenario. … Read More »