Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: DervishD on November 13, 2007, 09:24:57 AM

Title: Database sorting problem (dir buffer related?)
Post by: DervishD on November 13, 2007, 09:24:57 AM
Hi all :)

I have in my tagnavi_custom a specification to browse by tracks, alphabetically:
%format "track" "%s [%s]" title artist
...
%menu_start "DDTracks" "Tracks"
"All tracks" -> title = "track"
...
"A" -> title ? title ^ "A" = "track"

And the same for all other letters. This menu allows me to pick a letter and see all tracks whose name starts with that letter.

It works like a charm... except the "S" and "T" menus doesn't show the matches alphabetically.

The thing is that I've found that if the list of matches is longer than the directory buffer size, then the list is not sorted (but no "dir buffer full" message is issued). OK, I can admit this, but then, why when I choose "All tracks" the result IS sorted alphabetically? The entire list is about 3000 songs, while the "S" and "T" matches are only about 300-400 songs each (yes, most of my songs seem to start with "S" or "T"...). Maybe my problem is NOT related to the directory buffer size? Is this limit only important when doing matches?

Looks like the last answer is "yes", but I'm not sure.

I would like to keep my directory buffer size small, and if the problem is that the buffer size is a hard limit which is hit when doing matches, I will have to replace my "S" entry with "Sa" "Se" "Si"... entries (the same for "T"). Not a problem, really, but a bit annoying. That's why I want to know if all this mess is my fault O:)

Thanks a lot in advance

Raúl Núñez de Arenas Coronado