Home
Level Extreme platform
Subscription
Corporate profile
Products & Services
Login
FRANÇAIS
Home
FRANÇAIS
Level Extreme platform
Login
Best practices
Testimonials
Downloads
Articles
Subscription
Subscribe or renew
Benefits
Donate 5$
Donate 10$
Donate 15$
Donate 20$
Donate 25$
Corporate profile
Overview
Portfolio
Products & Services
Consulting services
Enterprise hosting
Web Site Hosting
Graphic design
Book publishing
Support
Troubleshooting
Problem with logins
Contact us
Legal
Copyright
Privacy policy
Terms & Conditions
Français
Fastest way to sort a collection
Message
From
30/01/2013 18:40:34
Rob Jasinski
I/O Technologies
Wisconsin
,
United States
To
30/01/2013 17:56:29
Michel Fournier
Level Extreme Inc.
Petit-Rocher
,
New Brunswick
,
Canada
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Re:
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:
01564768
Views:
44
If you know your collection is in ascending order and you want it descending, just reverse it (
http://msdn.microsoft.com/en-us/library/b0axc2h2%28v=vs.90%29.aspx
). Otherwise you can use the sort method (
http://msdn.microsoft.com/en-us/library/3da4abas%28v=vs.90%29.aspx
) to sort it, although you might need to create your own comparer. Or you could change your collection to a SortedList (
http://msdn.microsoft.com/en-us/library/ms132319%28v=vs.90%29.aspx
) so that the list is created in a sorted order.
It might also help to know exactly what type of collection you are using, how you are sorting now that is too slow, and why your collection is composed of single element object arrays instead of strings.
Previous
Next
Reply
Map
View the map of this thread
View the map of this thread starting from this message only
View
View all messages of this thread
View all messages of this thread starting from this message only
Click here to load this message in the networking platform
Level Extreme platform
Best practices
Testimonials
Downloads
Articles
Subscription
Subscribe or renew
Benefits
Donate 5$
Donate 10$
Donate 15$
Donate 20$
Donate 25$
Corporate profile
Overview
Portfolio
Products & Services
Consulting services
Enterprise hosting
Web Site Hosting
Graphic design
Book publishing
Support
Troubleshooting
Problem with logins
Contact us
Legal
Copyright
Privacy policy
Terms & Conditions
Login
Google
Copyright © 1993-2024 by Level Extreme Inc. All rights reserved · Website by
levelextreme.com