I added a basic "favorite/recommend" functionality for posts and comments to a wordpress site I'm working on.
I'm storing the total numbers of comment "likes" in a custom comment meta field (update_comment_meta). Now I would like to query and sort comments based on this custom meta key and the corresponding values in order to display popular comments.
Ideally I would like to be able to use parameters like "meta_key" and "order_by=meta_value_num" similar to WP_Query, but apparently comment queries don't support those.
Do I have to use a custom written query to the database? If so, could anybody give me an initial push as to how to approach this?