document.body.scrolltop is the property you are looking for.
It holds the vertical scroll position of your page. It's sort of a wierd property, being as it is readable and writeable (both a command and a query), and here's how I use it:
You say that your tables are sortable by clicking on a header cell, right? So that header cell, when clicked, calls a client side javascript function, yes?
Ok, then you need to put this hidden form element right at the end of your page:
<input type=hidden name=screenPosition>
Then, you will set it inside of your sort function right before you reload the page like this:
document.formName.screenPosition.value = document.body.scrolltop;
Then, go ahead and do your submit (the reload) -- and pick your value back up on the next load of the page and put it into a server side variable like this:
<%
dim screenPosition
screenPosition = request.form("screenPosition"

%>
And now, right at the end of your HTML (literally right before your </body> tag), put this bit of code:
<%
if screenPosition <> "" then%>
<script language=javascript>
document.body.scrolltop = <%=screenPosition%>;
</script>
<%
end if%>
So that if your server side ASP variable, screenPosition, has a value, then the line of client side code will be written, and your webpage will automatically be scrolled down to exactly where you left it when you clicked the table cell.
hope that helps!

Paul Prewett