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 2003-04-20 20:29:41 +00:00
parent 882e870329
commit 73c8d49169
3 changed files with 12 additions and 12 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}