Get Dataset in View Order

I know there is a getRowInViewOrder function, but i would like to be able to return the dataset in view order.