How to sort a loop after most viewed

Having taken a quick look at the wp-postviews documentation, it seems you can change query_posts( 'posts_per_page=5' ); to query_posts( 'posts_per_page=5&v_sortby=views&v_orderby=desc' );, but I haven’t tested that. Give it a shot and see how it turns out.

A cautionary note on doing this: What often happens when you sort by views is that the first page will NEVER change. Transient traffic will look at the first couple, boosting their numbers, but not click through. I suggest that you make other sort options available to your users, should they want them.