Title: RSVP backend
Last modified: May 25, 2026

---

# RSVP backend

 *  Resolved [annamacccc](https://wordpress.org/support/users/annamacccc/)
 * (@annamacccc)
 * [3 weeks, 1 day ago](https://wordpress.org/support/topic/rsvp-backend/)
 * I need to put the RSVP list guest of attendees into alphabetical order please,
   surname first. I have tried code and it is not working. This is urgent. Please
   help!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Teo Alex](https://wordpress.org/support/users/altesin/)
 * (@altesin)
 * [1 week, 6 days ago](https://wordpress.org/support/topic/rsvp-backend/#post-18927563)
 * Hello [@annamacccc](https://wordpress.org/support/users/annamacccc/) ,
   Unfortunately,
   there is no built-in option to change the default sort order in the backend attendee
   list. However, you can achieve this by adding the following code to your theme’s`
   functions.php` file:
 *     ```wp-block-code
       add_action( 'load-toplevel_page_rsvp-pro-top-level', function() {
           if ( isset( $_GET['action'] ) && $_GET['action'] === 'attendees' && ! isset( $_GET['orderby'] ) ) {
               wp_redirect( add_query_arg( array( 'orderby' => 'lastName', 'order' => 'ASC' ) ) );
               exit;
           }
       } );
       ```
   
 * This will automatically sort the attendee list by last name (A–Z) by default.
   You can still click on any column header to manually change the sort order at
   any time.
 * If you have any other questions, feel free to reach out!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frsvp-backend%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/rsvp/assets/icon.svg?rev=3477888)
 * [RSVP and Event Management](https://wordpress.org/plugins/rsvp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rsvp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rsvp/)
 * [Active Topics](https://wordpress.org/support/plugin/rsvp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rsvp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rsvp/reviews/)

## Tags

 * [alphabetical order](https://wordpress.org/support/topic-tag/alphabetical-order/)
 * [Backend](https://wordpress.org/support/topic-tag/backend/)

 * 1 reply
 * 2 participants
 * Last reply from: [Teo Alex](https://wordpress.org/support/users/altesin/)
 * Last activity: [1 week, 6 days ago](https://wordpress.org/support/topic/rsvp-backend/#post-18927563)
 * Status: resolved