How to sort Lists in C# or: IComparer rocks!

Posted by on Feb 26, 2014 in Game Development, Programming | No Comments

For a game i’m working on i needed to sort cities based on the commodities that are sold in these cities. The list should be sortable by buy/sell price, estimated profit with current player cargo and city names. As my commodity and city classes are quite complex i feared that i would have to write […]