title: wordpress custom orderby statement
body: <p>I am trying to display a custom post type list ordered by a value that is located in its own table. I am using a plugin called wti_like_posts, which allows for users to rate posts via thumbs up/down manner. </p>
  
  <p>The table contains the score and post_id attached to it. I would like to be able to add to the already existing options for 'orderby' in the query an option 'rating', so it could take that score into consideration when I query posts. </p>
  
  <p>Do you know any good way to do so ? I guess I have to use add_filter, but I already tried and cannot figure it out. Any help would be greatly appreciated !</p>
  
  <p>Thanks in advance</p>