1
0
mirror of https://github.com/2ec0b4/kaamelott-soundboard.git synced 2025-12-08 15:43:24 +00:00

Corrige le tri avec les caractères spéciaux

This commit is contained in:
Antoine
2016-05-17 23:23:07 +02:00
parent 50cffac96f
commit eea716f7b1

View File

@@ -10,8 +10,13 @@ define(
var Sounds = Backbone.Collection.extend({
model: Sound,
comparator: 'title',
url: 'sounds/sounds.json',
comparator: function(a, b) {
var str1 = a.get('title'),
str2 = b.get('title');
return str1.localeCompare(str2);
},
filterByTitle: function(search){
if( search == "" ) {
return this;