I am trying to sort posts based on rating (using wp-postrating plugin) and numbers of comments. I have made this using wpdb, but i kinda wish to make it easier and use it with wp_query. Seems that I can not find any way to achieve this because I do not know any method to orderby two items in $args.
My wpdb code looks like this...
$wpdb->get_results("SELECT wp_postmeta.meta_value, id, post_title, comment_count FROM wp_posts
INNER JOIN wp_postmeta ON wp_postmeta.post_id = wp_posts.id
ORDER BY wp_postmeta.meta_value DESC, comment_count DESC");