Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to sort a collection
Message
From
30/01/2013 17:56:29
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Fastest way to sort a collection
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01564757
Message ID:
01564757
Views:
65
I have a collection. It contains an object. That object as an array of 1. It contains the name of a directory.

To add an item in the collection, I use this:
        ' Add an item in the oDirectory collection
        ' expC1 Directory
        Private Function AddDirectory(ByVal tcDirectory As String) As Boolean
            Dim loObject(1) As Object

            loObject(1) = tcDirectory

            oDirectory.Add(loObject)
            Return True
        End Function
The way this is created, it is in ascending order. I was wondering what would be the fatest way to sort that collection in descending order knowing that each item is an object.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform