Fixed bad sorting
This commit is contained in:
parent
091639e740
commit
869c2918a7
|
@ -128,8 +128,8 @@ function processGame(game) {
|
||||||
|
|
||||||
let trimmedTitle = model.title.toLowerCase();
|
let trimmedTitle = model.title.toLowerCase();
|
||||||
toTrim.forEach(trim => {
|
toTrim.forEach(trim => {
|
||||||
if (trimmedTitle.startsWith(trim)) {
|
if (trimmedTitle.startsWith(trim + " ")) {
|
||||||
trimmedTitle = trimmedTitle.substr(trim.length + 1);
|
trimmedTitle = trimmedTitle.substr(trim.length + 2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in New Issue