Click here to Skip to main content
15,883,647 members
Articles / Programming Languages / Visual Basic

Implementing the .NET IComparer interface to get a more natural sort order

Rate me:
Please Sign up or sign in to vote.
4.79/5 (23 votes)
4 Jul 2008CPOL2 min read 95.9K   2.1K   54  
The IComparer available in .NET lets you sort numbers or strings. This little class available in both C# and VB shows how to implement an IComparer which will work with mixed characters and numbers.

Revisions


  

Compare Revision Minor Date Status Editor
1 - publicly available No 4-Jul-08 1:59 Available Smitha Nishant

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
France France
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.

Comments and Discussions