Quote Originally Posted by jmcilhinney View Post
True, but why does the code have to be general? You're complaining about performance and then demanding that your code be general enough to work in all cases. Writing a comparer for a specific ListView is a five-minute job. Using a single class that will work for any ListView is a false economy.
If you have to call a procedure 10 or 15 times that needs a fairly long extra job. It could be possible to create a piece of code inside the class which will automatically recognize LV columns and use them. That's code executed only once per call and doesn't spend a large amount of clock cycles.

.paul was sarcastic citing my words about 'universality' of sort routine thinking that I'm underestimating his work. That's not absolutely true. I just want to help to make things better.