• Resolved mnpdev

    (@mnpdev)


    Is it possible to sort the attendee list on first name alphabetically? I use the shortcode to display the attendee list.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author roundupwp

    (@roundupwp)

    I think I could help you with a JavaScript snippet! I’ll get back to you soon with this.

    – Craig

    Thread Starter mnpdev

    (@mnpdev)

    That would be great! I’ll await the snippet

    Plugin Author roundupwp

    (@roundupwp)

    No problem!

    Try adding the following to the “Custom JavaScript” area found on the “Form” tab:

    jQuery('.rtec-attendee-list-meta').each(function() {
    	jQuery(this).find('.rtec-attendee').sort(function(a, b) {
    		if (a.textContent.toLowerCase() < b.textContent.toLowerCase()) {
    			return -1;
    		} else {
    			return 1;
    		}
    	}).appendTo(jQuery(this).find('.rtec-attendee-list').first());
    });

    This assumes that the first name is shown first in the attendee list. Send a link if it doesn’t seem to work and I can make sure it fits your situation!

    – Craig

    Plugin Author roundupwp

    (@roundupwp)

    This thread has been quiet for awhile so I’ll close it. Let me know if you need more help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Attendee list sort on name alphabetically (A-Z)’ is closed to new replies.