You can either sort them with jQuery on the front-end, or pull the like count into the back-end and store on the post_meta. Then sort by meta value in your loop.
http://graph.facebook.com/?id=http://{URL}
Result
{
"id": "http://{URL}",
"shares": intgr/(number)
}
Other types of share counts.
Related Posts:
- Order posts by meta_value even if meta_key is not filled
- Orderby Post Views
- Use pre_get_posts to sort meta_key by an array of values
- ASC and DESC separately from orderby
- Orderby Title not working
- Sort on meta value but include posts that don’t have one
- Using Orderby and meta_value_num to order numbers first then strings
- How to Change Order of Posts in Admin?
- multiple orderby in pre_get_posts action
- Different post sort order within different categories
- How to get order of posts?
- get_the_terms in descending alphabetical order
- How to order users alphabetically by their last name?
- next and previous post link ordered alphabetically
- Sort posts by tags in category pages
- How to sort posts by last name (2nd word) on ONE category only?
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- the_tags() : display the tags by the order they are typed in in the backend, not alphabetically
- Sorting Attributes order when using get_the_terms
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- How to order posts by meta value?
- How Do I Order Posts by Modified Date? [duplicate]
- Customize the Sorting Dropdown in WooCommerce
- Arrange and separate posts
- Meta query with order by another custom field
- How to order posts by alphabet with numbers at the end
- How do I sort posts with multiple pages
- Best Plugin to Reorder Post Types
- Ordering system through WordPress
- Ordering of gallery images without using shortcode in theme
- Combining sorted and random CPT
- Order wordpress taxonomy parent terms by their children count
- Issue with multiple orderby values
- get_query_var returns wrong default value
- Displaying posts sorting by a custom criterion
- Wp_query: sort by PHP variable
- Order posts by price
- Sort query_posts for Parent Pages to menue order or the count?
- How to redefine the sorting of product categories by menu_order?
- Sort wordpress custom posts based on meta value
- get_adjacent_post() returning weird results
- How to sort posts inside categories
- Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?
- Custom taxonomy/category order
- how to get post order by post id wp_query?
- List most recently added posts (with a twist)
- Check post_date in pre_get_posts
- pre_get_posts shows posts in random order sometimes
- ORDER BY custom field value out of where clause
- Featured-Content/Featured Posts With Random Order
- Orderby in Query Posts affected by operating system?
- Sort custom posts in archive by multiple values: date AND meta key
- Stylesheet Enqueue Order and Best Practices
- Order BY Most Liked And Published Between Previous Week Monday And Next Week Monday
- wp_list_pages sort order by top nav menu order and child of
- How to display taxonomy terms the way they are hierarchical
- wp_list_categories() by alphabet? (ex. only category titles that start with “A”) [closed]
- Sort appearence order in the_content()
- Order by ASC, DESC, Title, Date from URL on custom page template post
- Offset posts with random order
- Sort query output on taxonomy term archive by post type using pre_get_posts
- Natural sort / ordering wp_dropdown_categories
- orderby ignored by wp_query
- Sort users by meta key value even if meta key not present for all users
- Order WP_Query by The Order of an Array in Tax_Query
- struggling to order by title
- Order by two meta values – one is a number and the other is text
- Last post sorting get_categories
- Sort products by Sale price and stock status
- How to sort store location by specific category order in WP store locations
- Sort by DESC works, ASC doesn’t?
- Order posts ascending from posts in array
- Shop sends Mail with order cancellation
- update_post_meta saves data but does not show in Order backend
- How to sort products by price ASC and place all no price products to the end? (Woocommerce)
- Custom post type order by post_title
- how to complete order status automatically after paypal payment received
- meta_query orderby sort multiple keys
- Order 2 meta_queries differently in WP_Query?
- Order management including recurring orders on woocommerce
- How to sort custom post’s category by id from the theme’s function.php?
- Pin to Top Functionality using orderby custom field then event date
- Sort posts by meta value with get method
- Best way to sort posts with different types by distance
- How to order custom user list columns by datetime?
- Want to order by Meta Values (tweaking Post Order Widget)
- Changing posts order on a page
- Query category-specific, paginated posts and allow viewer to change sort order
- Sorting: custom query with orderby meta_value_num THEN by title
- Ordering Subcategories
- How to order posts by parents?
- Problem with meta_value order after update
- How can I make have_posts() return posts ordered DESC by id?
- Add post order like page order
- Woocommerce Pre Orders view order link wrong [closed]
- How to make WordPress orderby work with post_excerpt column?
- Can’t sort custom column on user.php by number / meta_value_num?
- Orderby with menu_order and title
- Ascending & descending posts on same page with IF statement