use case insensitive sorting for the playlist
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17351 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bcc46b4b92
commit
84123592e9
@ -17,6 +17,8 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
*/
|
||||
#include <string.h>
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user