Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to sort a collection
Message
De
30/01/2013 17:56:29
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Fastest way to sort a collection
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01564757
Message ID:
01564757
Vues:
68
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform