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.