-
Feb 16th, 2011, 05:12 AM
#1
Thread Starter
Lively Member
-
Feb 16th, 2011, 07:39 AM
#2
Re: Sort By Basename Url
I assume you just want an alphabetic sort. If that's the case, you can stick the strings into a (possibly hidden) ListBox, make the .Sorted property true, and read them back out in order. There are of course more ways, but this one has the advantage of being very quick to code--you avoid writing your own sort routine.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Feb 16th, 2011, 08:58 AM
#3
Thread Starter
Lively Member
Re: Sort By Basename Url
hmm, thnx... any direct way?
-
Feb 16th, 2011, 10:20 AM
#4
-
Feb 16th, 2011, 10:59 AM
#5
Thread Starter
Lively Member
Re: Sort By Basename Url
i cant figure out.... sorry..... which one....
-
Feb 16th, 2011, 11:15 AM
#6
Re: Sort By Basename Url
Your choice. Read the posts, the author described which may be better suited for different scenarios.
-
Feb 16th, 2011, 02:42 PM
#7
Re: Sort By Basename Url
Quick rule of thumb that I use:
Up to a couple hundred items, insertionsort is fine
Up to several thousand, I personally like combsort for its simplicity
Over several thousand, quicksort3 is your best bet
-
Feb 17th, 2011, 12:44 AM
#8
Thread Starter
Lively Member
Re: Sort By Basename Url
i tried quicksort3
but it didn't sorted out in order!
-
Feb 17th, 2011, 02:01 AM
#9
Re: Sort By Basename Url
If you're having trouble with other methods, I'd suggest you just use the ListBox approach. It's very simple to implement: add a ListBox to a form, set .Visible to false, set .Sorted to true, use .AddItem to add your elements, and then use .List to read them back in order.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|