From 84123592e972ebc18978c2efa09b2515e097fb28 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sat, 6 May 2006 21:46:55 +0000 Subject: [PATCH] use case insensitive sorting for the playlist git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17351 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mediaplayer/Playlist.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/Playlist.cpp b/src/apps/mediaplayer/Playlist.cpp index 2cd2b4627c..92a61d8738 100644 --- a/src/apps/mediaplayer/Playlist.cpp +++ b/src/apps/mediaplayer/Playlist.cpp @@ -17,6 +17,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ +#include + #include "Playlist.h" // TODO: using BList for objects is bad, replace it with a template @@ -56,7 +58,7 @@ Playlist::CountItems() int Playlist::playlist_cmp(const void *p1, const void *p2) { - return strcmp((*(const entry_ref **)p1)->name, (*(const entry_ref **)p2)->name); + return strcasecmp((*(const entry_ref **)p1)->name, (*(const entry_ref **)p2)->name); }