зеркало из https://github.com/mozilla/gecko-dev.git
Bug 736574 - PageInfo: Fix an if-condition causing a failure to sort the media by count. r=Dao
This commit is contained in:
Родитель
15d994b93f
Коммит
7818261a54
|
@ -187,7 +187,7 @@ gImageView.onPageMediaSort = function(columnname) {
|
|||
var treecol = tree.columns.getNamedColumn(columnname);
|
||||
|
||||
var comparator;
|
||||
if (treecol.index == COL_IMAGE_SIZE) {
|
||||
if (treecol.index == COL_IMAGE_SIZE || treecol.index == COL_IMAGE_COUNT) {
|
||||
comparator = function numComparator(a, b) { return a - b; };
|
||||
} else {
|
||||
comparator = function textComparator(a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); };
|
||||
|
|
Загрузка…
Ссылка в новой задаче