<?php get_header(); ?>
	<div id="container">
		<?php
		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
		$args = array(
			'meta_key' => 'likes',
			'orderby'   => 'meta_value_num',
			'paged' => $paged,
			'order' => DESC
		);
		query_posts($args);
		if(have_posts()) : while (have_posts()) : the_post(); ?>
			<?php get_template_part( 'content', get_post_format() ); ?>
		<?php endwhile; endif; ?>
	</div><!--end container-->
	<div id="pagenavi">
		<?php pagenavi();?>
	</div><!--end pagenavi-->
	<div class="clear"></div>
<?php get_footer(); ?>