summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-03-07 10:52:19 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-03-07 10:52:19 +0000
commit5eb29674283cb1923a26be2336bd9bed55be26ae (patch)
tree9672e86766bc265d7fb47354332bf9bd9b16cdc9 /apps
parent43b2d091baafa1b1a6c90af6b927a8acc53f8e7b (diff)
downloadrockbox-5eb29674283cb1923a26be2336bd9bed55be26ae.tar.gz
rockbox-5eb29674283cb1923a26be2336bd9bed55be26ae.zip
Sort tagcache so that <Untagged> appears alongside <All tracks>
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12667 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 6b891f1011..bcff803d18 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -1740,12 +1740,14 @@ static int compare(const void *p1, const void *p2)
1740 struct tempbuf_searchidx *e1 = (struct tempbuf_searchidx *)p1; 1740 struct tempbuf_searchidx *e1 = (struct tempbuf_searchidx *)p1;
1741 struct tempbuf_searchidx *e2 = (struct tempbuf_searchidx *)p2; 1741 struct tempbuf_searchidx *e2 = (struct tempbuf_searchidx *)p2;
1742 1742
1743 /* 1743 if (strcmp(e1->str, UNTAGGED) == 0)
1744 if (!strncasecmp("the ", e1, 4)) 1744 {
1745 e1 = &e1[4]; 1745 if (strcmp(e2->str, UNTAGGED) == 0)
1746 if (!strncasecmp("the ", e2, 4)) 1746 return 0;
1747 e2 = &e2[4]; 1747 return -1;
1748 */ 1748 }
1749 else if (strcmp(e2->str, UNTAGGED) == 0)
1750 return 1;
1749 1751
1750 return strncasecmp(e1->str, e2->str, TAG_MAXLEN); 1752 return strncasecmp(e1->str, e2->str, TAG_MAXLEN);
1751} 1753}