Fix type in device sort (fixes #1668)

This commit is contained in:
Jakob Borg
2015-04-20 22:18:19 +09:00
parent d530c5eda7
commit e2420495f3
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ function deviceCompare(a, b) {
if (typeof a.name !== 'undefined' && typeof b.name !== 'undefined') {
if (a.name < b.name)
return -1;
return a.name > b.bame;
return a.name > b.name;
}
if (a.deviceID < b.deviceID) {
return -1;