Skip to content

Commit

Permalink
Fix mleibman#300 - corrupt row reordering in the example.
Browse files Browse the repository at this point in the history
  • Loading branch information
mleibman committed Apr 14, 2012
1 parent f5f5b91 commit 0caf9ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/example9-row-reordering.html
Expand Up @@ -179,11 +179,13 @@
left = data.slice(0, insertBefore);
right = data.slice(insertBefore, data.length);

rows.sort(function(a,b) { return a-b; });

for (var i = 0; i < rows.length; i++) {
extractedRows.push(data[rows[i]]);
}

rows.sort().reverse();
rows.reverse();

for (var i = 0; i < rows.length; i++) {
var row = rows[i];
Expand Down

0 comments on commit 0caf9ba

Please sign in to comment.