bug 76386, cookies no longer being sorted, r=blakeross, sr=alecf

This commit is contained in:
morse%netscape.com 2001-04-17 23:04:19 +00:00
parent aff30576dd
commit 978236fe5b
3 changed files with 15 additions and 15 deletions

View File

@ -54,7 +54,7 @@ function bubbleSort(columnPosition, ascending, children)
var keys = [];
for (var x=0; x<n; x++){
var keyCell = a[x].firstChild.childNodes[columnPosition];
keys[x] = keyCell.getAttribute('value');
keys[x] = keyCell.getAttribute('label');
}
for (var i = 0; i < m; i++) {
@ -92,11 +92,11 @@ function bubbleSort(columnPosition, ascending, children)
keys[i] = value_winner;
keys[winner] = value_i;
} else {
value_i = cell.getAttribute('value');
value_winner = nextCell.getAttribute('value');
value_i = cell.getAttribute('label');
value_winner = nextCell.getAttribute('label');
}
cell.setAttribute('value', value_winner);
nextCell.setAttribute('value', value_i);
cell.setAttribute('label', value_winner);
nextCell.setAttribute('label', value_i);
cell = cell.nextSibling;
nextCell = nextCell.nextSibling;
position++;

View File

@ -54,7 +54,7 @@ function bubbleSort(columnPosition, ascending, children)
var keys = [];
for (var x=0; x<n; x++){
var keyCell = a[x].firstChild.childNodes[columnPosition];
keys[x] = keyCell.getAttribute('value');
keys[x] = keyCell.getAttribute('label');
}
for (var i = 0; i < m; i++) {
@ -92,11 +92,11 @@ function bubbleSort(columnPosition, ascending, children)
keys[i] = value_winner;
keys[winner] = value_i;
} else {
value_i = cell.getAttribute('value');
value_winner = nextCell.getAttribute('value');
value_i = cell.getAttribute('label');
value_winner = nextCell.getAttribute('label');
}
cell.setAttribute('value', value_winner);
nextCell.setAttribute('value', value_i);
cell.setAttribute('label', value_winner);
nextCell.setAttribute('label', value_i);
cell = cell.nextSibling;
nextCell = nextCell.nextSibling;
position++;

View File

@ -54,7 +54,7 @@ function bubbleSort(columnPosition, ascending, children)
var keys = [];
for (var x=0; x<n; x++){
var keyCell = a[x].firstChild.childNodes[columnPosition];
keys[x] = keyCell.getAttribute('value');
keys[x] = keyCell.getAttribute('label');
}
for (var i = 0; i < m; i++) {
@ -92,11 +92,11 @@ function bubbleSort(columnPosition, ascending, children)
keys[i] = value_winner;
keys[winner] = value_i;
} else {
value_i = cell.getAttribute('value');
value_winner = nextCell.getAttribute('value');
value_i = cell.getAttribute('label');
value_winner = nextCell.getAttribute('label');
}
cell.setAttribute('value', value_winner);
nextCell.setAttribute('value', value_i);
cell.setAttribute('label', value_winner);
nextCell.setAttribute('label', value_i);
cell = cell.nextSibling;
nextCell = nextCell.nextSibling;
position++;