aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/SongSort.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db/SongSort.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/db/SongSort.cxx b/src/db/SongSort.cxx
index dcea033b6..c5752f568 100644
--- a/src/db/SongSort.cxx
+++ b/src/db/SongSort.cxx
@@ -21,13 +21,12 @@
#include "SongSort.hxx"
#include "Song.hxx"
#include "tag/Tag.hxx"
+#include "lib/icu/Collate.hxx"
extern "C" {
#include "util/list_sort.h"
}
-#include <glib.h>
-
#include <stdlib.h>
static int
@@ -39,7 +38,7 @@ compare_utf8_string(const char *a, const char *b)
if (b == nullptr)
return 1;
- return g_utf8_collate(a, b);
+ return IcuCollate(a, b);
}
/**
@@ -104,7 +103,7 @@ song_cmp(gcc_unused void *priv, struct list_head *_a, struct list_head *_b)
return ret;
/* still no difference? compare file name */
- return g_utf8_collate(a->uri, b->uri);
+ return IcuCollate(a->uri, b->uri);
}
void