hi hi,
at first: i have a normal Table with 2 colums and 5000 testrows. If i sort after the second row, my quicksortimplementaion runs perfect. Buuuuut if i use it on my second table, with 5 colums and 1000 rows, i get a “out of memory” error from the internet explorer version 6. I checkt the taskmanager while the algo runs over the 2 columstable and! the ie dont use more mem as normally ?
the algoimplementaion in shortform:
[code]
function quicksort(…)
function partition(…)
yes the default partition function. Here i create only a variable from the pivotobject
var pivot = colums[50%];
on the stack.
function changeRow(…){
Change the content from row 1 with 2. simple with changing the innerHTML values:
for(i = 0; i< row.length;i++)
row1[i].innerHTML = temp[i].innerHTML
description:
you see i have a tempobject. But i create it with var on the stack in the function!
As a test i made the pivot global and dont declared it everytime in the function.
[code]
var pivot;
function partition(…)
pivot = …