0

In an ASP.net MVC3 project I have a custom implementation of the IComparer interface. I want to use my comaprer by default when strings are sorted. How can I change the default IComparer for the project?

Tarzan
  • 4,270
  • 8
  • 50
  • 70
  • I do not want to pass in a comparer during each sort operation. The question is about how to change the comparer at the project level scope. – Tarzan Mar 28 '12 at 14:14

1 Answers1

0

Implementing IComparable on your type will work in most places

Robert Levy
  • 28,747
  • 6
  • 62
  • 94