Raised This Month: $51 Target: $400
 12% 

Sorting Associative Arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Theme97
Senior Member
Join Date: Mar 2009
Old 09-18-2009 , 01:49   Sorting Associative Arrays
Reply With Quote #1

I am sorting an array of strings (song titles) but I need to be able to attach a key (filename) to them so that I can look up more information (e.g. album, artist, etc.) about it after sorting.

What would be the most efficient way to sort in this situation? Should I create a trie with the song title as the key and the filename as its value or is there a better way?

Edit: Also, most efficient way of creating submenus? Just store the handles in an array?

Edit 2: Went ahead and tried my own implementation, but I'll still leave this thread open for discussion and future reference.
__________________
I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

[ALL] Karaoke
[TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All

Last edited by Theme97; 09-18-2009 at 03:55.
Theme97 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode