Title: Make Agents sortable
Last modified: September 1, 2016

---

# Make Agents sortable

 *  [Step By Step 3D](https://wordpress.org/support/users/welchwerks/)
 * (@welchwerks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/)
 * Hi, I am wanting to sort the multiple agents. might you be willing to offer the
   code to add to allow agents to be sortable.
 * reason is I would like to place 1st one as listing agent, and other as buyers
   agents.
 * sample page: [http://hendersonrealestatepros.com/listings/2520-chateau-napoleon-dr/](http://hendersonrealestatepros.com/listings/2520-chateau-napoleon-dr/)
 * Can this sort of code be implemented in even though i know updates would overright
   
   [https://github.com/scribu/wp-posts-to-posts/wiki/Connection-ordering](https://github.com/scribu/wp-posts-to-posts/wiki/Connection-ordering)
 * p2p_register_connection_type( array(
    ‘name’ => ‘posts_to_pages’, ‘from’ => ‘
   post’, ‘to’ => ‘page’, ‘sortable’ => ‘any’ ) );
 * [https://wordpress.org/plugins/impress-agents/](https://wordpress.org/plugins/impress-agents/)

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

 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586850)
 * The plugin already supports this post to post connection with agents <=> listings
   and it supports drag and drop ordering.
 * However, the function that displays those on the front end does not currently
   take into account the ordering.
 * We have an enhancement request in to add this as a feature in a future update.
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586851)
 * After our developers tested this further, it actually does work as expected and
   you can drag and drop the order of connected Agents on a listing and they will
   display on the listing in that order.
 *  Thread Starter [Step By Step 3D](https://wordpress.org/support/users/welchwerks/)
 * (@welchwerks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586852)
 * Ok so I am wondering what plugin you are using to sort order connected employees
   in in addition to impress agents
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586853)
 * It’s using the Posts 2 Posts plugin. When you connected them, in the Connected
   Employees widget on the listing edit screen, if you hover over an Agent it will
   give you the option to drag and drop the order of those Agents. That order is
   then displayed on the front end.
 *  Thread Starter [Step By Step 3D](https://wordpress.org/support/users/welchwerks/)
 * (@welchwerks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586854)
 * Well, I wish that worked. at the moment I have decativated all plugings , uninstalled
   and reinstalled post 2 post and impress agents but when i hover over an agent
   to move it i get grey x out circle.
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586855)
 * I’m not sure where you’re seeing the grey x out circle. This is what you should
   be seeing in the Connected Employees box. [https://cl.ly/2u1w401w0y1C](https://cl.ly/2u1w401w0y1C)
   When hovering, you get a drag and drop icon to move it.
 *  Thread Starter [Step By Step 3D](https://wordpress.org/support/users/welchwerks/)
 * (@welchwerks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586856)
 * Ya thats the problem no option [https://cl.ly/3D200Q1n3i03](https://cl.ly/3D200Q1n3i03)
 *  Thread Starter [Step By Step 3D](https://wordpress.org/support/users/welchwerks/)
 * (@welchwerks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586857)
 * here is what i see [https://cl.ly/3Y2o2V420o1a](https://cl.ly/3Y2o2V420o1a)
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586858)
 * That is strange. We’re not getting the same behavior here. It’s showing the drag
   and drop ability as expected. Can you try using an alternate browser?
 *  Thread Starter [Step By Step 3D](https://wordpress.org/support/users/welchwerks/)
 * (@welchwerks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586859)
 * in chrome same thing
 *  Thread Starter [Step By Step 3D](https://wordpress.org/support/users/welchwerks/)
 * (@welchwerks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-7586860)
 * im using firefox
 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-8283315)
 * I’m able to reproduce the issue in FireFox. I’ve submitted a defect to development
   to look into this further. Thank you.
 *  [daschenbrener](https://wordpress.org/support/users/daschenbrener/)
 * (@daschenbrener)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/make-agents-sortable/#post-8972550)
 * I was wondering if there is any progress or options to make the agents sort-able?
 * As I tried this but the post 2 post plugin doesn’t function
 * Or maybe the better question , when i go to the page where it lists all the employees,
   how can i sort that page
    -  This reply was modified 9 years, 1 month ago by [daschenbrener](https://wordpress.org/support/users/daschenbrener/).
 *  [daschenbrener](https://wordpress.org/support/users/daschenbrener/)
 * (@daschenbrener)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/make-agents-sortable/#post-8972692)
 * ANd to be exact how could i orderby, lastname of the employee.
 * i know you can edit the function.php and set the order by
 * $query->set( ‘orderby’, ‘title’ );
 * but not 100% sure how to do it by Lastname.
 * Thanks in advance
 *  [DanielCPalmer](https://wordpress.org/support/users/danielcpalmer/)
 * (@danielcpalmer)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-9228113)
 * Following.

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

The topic ‘Make Agents sortable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/impress-agents_c1bdb8.svg)
 * [IMPress Agents](https://wordpress.org/plugins/impress-agents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/impress-agents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/impress-agents/)
 * [Active Topics](https://wordpress.org/support/plugin/impress-agents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/impress-agents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/impress-agents/reviews/)

 * 15 replies
 * 4 participants
 * Last reply from: [DanielCPalmer](https://wordpress.org/support/users/danielcpalmer/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/make-agents-sortable/#post-9228113)
 * Status: not resolved