Title: Post Sorting
Last modified: August 22, 2016

---

# Post Sorting

 *  Resolved [Mario C](https://wordpress.org/support/users/mario-c/)
 * (@mario-c)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/post-sorting-1/)
 * Hello, tks for your fantastic plugin!
    [https://wordpress.org/plugins/mashsharer/](https://wordpress.org/plugins/mashsharer/)
 * Now, I’m trying to sort posts by share count with a function call.
 * Regarding this sentence,
    set_query_var(‘meta_key’, ‘mashsb_shares’);
 * Due to the format 1,4,5,12,26 it is said i need to explode() to get the last 
   value.
    Unfortunately i don’t know how to proceeed with that. I’ve read several
   articles on web pages but I can’t get it to work. Can you please help?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/post-sorting-1/#post-5840959)
 * Hello Mario, unfortunately this is not working at the moment. We have to rewrite
   the function which stores the share value.
 * Its a relict of an old idea we had planned, so mashshare is storing up to 50 
   share values separated by an comma in the meta field. This is deprecated and 
   we want to change this to only one value per field. This allows us than to order
   by the share count very easily.
 * If you like to help rewriting have a look at mashshare on github:
    [https://github.com/mashshare/Mashshare](https://github.com/mashshare/Mashshare)
 * Feel free to rewrite this count storing function. Are you familiar with github
   and pushing changes? The function which is responsible is getSharedcount() in
   line 131
 * The changes are not complicated but due to lack of time some help would be very
   helpful:-)
 * If you need assistance just write me personally info [at] mashshare.net
 * Best regards,
    René
 *  Thread Starter [Mario C](https://wordpress.org/support/users/mario-c/)
 * (@mario-c)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/post-sorting-1/#post-5840964)
 * Hi René and thanks for your response.
    I appreciate your time and consideration.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post Sorting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mashsharer_33bbee.svg)
 * [MashShare - Social Media Share Buttons, Social Share Icons](https://wordpress.org/plugins/mashsharer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mashsharer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mashsharer/)
 * [Active Topics](https://wordpress.org/support/plugin/mashsharer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mashsharer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mashsharer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mario C](https://wordpress.org/support/users/mario-c/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/post-sorting-1/#post-5840964)
 * Status: resolved