summaryrefslogtreecommitdiff
path: root/src/utility/comparators.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-09 14:42:13 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-09 14:42:13 +0200
commit4961e6d6eedcbd941180b7d49cd9344cbea8c106 (patch)
tree7ca80e5b35038dcd87450816636944baf73799cb /src/utility/comparators.cpp
parent6f81748602efebf643394dd3fdfd5d820c01d26c (diff)
comparators: fix LocaleBasedItemSorting
Diffstat (limited to 'src/utility/comparators.cpp')
-rw-r--r--src/utility/comparators.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utility/comparators.cpp b/src/utility/comparators.cpp
index c49c3ae3..76cfc53a 100644
--- a/src/utility/comparators.cpp
+++ b/src/utility/comparators.cpp
@@ -59,10 +59,10 @@ bool LocaleBasedItemSorting::operator()(const MPD::Item &a, const MPD::Item &b)
switch (a.type)
{
case MPD::itDirectory:
- result = m_cmp(getBasename(a.name), getBasename(b.name)) < 0;
+ result = m_cmp(getBasename(a.name), getBasename(b.name));
break;
case MPD::itPlaylist:
- result = m_cmp(a.name, b.name) < 0;
+ result = m_cmp(a.name, b.name);
break;
case MPD::itSong:
switch (m_sort_mode)
@@ -75,7 +75,7 @@ bool LocaleBasedItemSorting::operator()(const MPD::Item &a, const MPD::Item &b)
break;
case smCustomFormat:
result = m_cmp(a.song->toString(Config.browser_sort_format),
- b.song->toString(Config.browser_sort_format)) < 0;
+ b.song->toString(Config.browser_sort_format));
break;
}
break;