Fix for bug 202707: cookie and image manager sort entries in descending order

patch by dwitte
r=mvl
sr=bzbarsky
This commit is contained in:
ere%atp.fi 2006-07-27 14:55:47 +00:00
Родитель 91f81e4d5b
Коммит 7aeac77248
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -127,17 +127,17 @@ function SortTree(tree, view, table, column, lastSortColumn, lastSortAscending)
if (ascending) {
compareFunc = function compare(first, second) {
if (first[column] < second[column])
return 1;
if (first[column] > second[column])
return -1;
if (first[column] > second[column])
return 1;
return 0;
}
} else {
compareFunc = function compare(first, second) {
if (first[column] < second[column])
return -1;
if (first[column] > second[column])
return 1;
if (first[column] > second[column])
return -1;
return 0;
}
}