Could you give an example of your modifications? It is much easier to give advice and point to crucial things.
Also: it is not necessary to sort externally, you can click on a column header to sort.
Isn't this the same question as in post
/t/13621/1
?
You did not answer back then - as all the information is already in your original post I would suggest that this thread gets deleted.