Added Sort by Most or Least Likes and Fixed Queries and Subqueries in Sorting Threads