Sorting elements coming from db without repeating code
This week I was working on developing an ASP.NET Web Api service which would
talk with a javascript client and one of the needed features was sorting. The
case was that we need to get a feed of items sorted by each field of our
database entity (I will