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
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- How to Change Order of Posts in Admin?
- multiple orderby in pre_get_posts action
- ORDER BY custom field value
- Sorting: custom query with orderby meta_value_num THEN by title
- 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?
- Order by first name
- How can I custom order the results from wp_list_categories?
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Custom Post type sort order not working in the admin area
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- How to alter query order direction using $query->set(‘order’, ‘ASC’); inside a pre_get_posts filter?
- the_tags() : display the tags by the order they are typed in in the backend, not alphabetically
- Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
- 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
- How to order posts (woocommerce products) alphabetically but ignore certain words, eg ‘The’ and ‘An’
- get_terms orderby name as numbers
- Arrange and separate posts
- Sorting posts by multiple values, combined
- 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
- orderby:date not working
- 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
- Show first the posts from 1 specific tag
- Wp_query: sort by PHP variable
- Order posts by price
- All, published and pending order
- Sort query_posts for Parent Pages to menue order or the count?
- Show Primary Category first when I display post categories
- How to redefine the sorting of product categories by menu_order?
- Sort wordpress custom posts based on meta value
- WP_Query: Group events by year, sorted DESC; then by date for each year group, sorted ASC
- Understanding the orderby in WP_Query?
- get_adjacent_post() returning weird results
- Get_Users Orderby Page
- Sort order of next/prev sibling page
- How to sort posts inside categories
- Help ordering Post loop by two meta values
- Order char by post title
- Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?
- Trying to sort and display categories(not posts) by custom field: ‘order’
- next_post_link and previous_post_link order not working properly
- Custom taxonomy/category order
- query pages by a childs publish date
- wp e-commerce group product by category [closed]
- 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
- Custom post type sorting: alphabetical order
- 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?
- I would like my page editor to be sorted by date created, or updated, instead of in Alpha order, is this possible?
- Sort custom posts in archive by multiple values: date AND meta key
- Ordering posts by title containing numbers
- 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]
- How to manage a particular “order by” for get_search_query()?
- Sort appearence order in the_content()
- Order by ASC, DESC, Title, Date from URL on custom page template post
- Offset posts with random order
- view subcategories order by id
- 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