Sort Objects in A .NET Collection by A Specified Property
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET, ASP.NET
This is a part of Dimitry Mishalov's snippet of the same name. I needed this functionality so I used his code and ASP.NET / VB.NET-ified it. Thanks to Dimitry. Here is Dimitry's description of the subroutine: This routine is designed to re-arrange objects ,not values, inside a collection by any numeric/string/date property which name is supplied as an argument. Here is his original article http://www.freevbcode.com/ShowCode.Asp?ID=4522
Instructions: Copy the declarations and code below and paste directly into your VB project.