sorted read of rows

Hello
When stable sorting is enabled it is impossible to read the rows and get them in the sorted order. Is there a syntax that will read the rows as visibibly displayed? I need to get at the data as sorted.

Please, try to iterate through the rows with the following function:

<script> for (var i=0; i<grid.getRowsNum(); i++){ // here i - index of the row in the grid do_something_with_row(index); } </script>