Title: Sort tpenrollments
Last modified: August 30, 2016

---

# Sort tpenrollments

 *  Resolved [unofficialmagellan](https://wordpress.org/support/users/unofficialmagellan/)
 * (@unofficialmagellan)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/)
 * I am trying to sort the tpenrollments either by date or by name. So that they
   display is some order on the page. Is there anyway to do this?
 * [https://wordpress.org/plugins/teachpress/](https://wordpress.org/plugins/teachpress/)

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

 *  Plugin Author [winkm89](https://wordpress.org/support/users/winkm89/)
 * (@winkm89)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/#post-6648909)
 * Hi,
 * I’ve added two order parameters to [tpenrollments], which can be used to manipulate
   the order of courses. You can find more information in the [documentation](https://mtrv.wordpress.com/teachpress/tpenrollments/)
 *  Thread Starter [unofficialmagellan](https://wordpress.org/support/users/unofficialmagellan/)
 * (@unofficialmagellan)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/#post-6648935)
 * will this also order the courses under “Your Enrollments” I have 3 parent courses
   right now and to order them by parent will work great for me. [tpenrollments 
   order_parent=”Training”] doesn’t seem to order the “Your Enrollments” page. That
   is the one I really wanted to have ordered. Also is my syntax correct for [tpenrollments
   order_parent=”Training, Tournaments, Nebraska League”]
 * Being new to this I want to make sure I am using it correctly.
 *  Plugin Author [winkm89](https://wordpress.org/support/users/winkm89/)
 * (@winkm89)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/#post-6648978)
 * No, the “Your Enrollments” page is currently not affected from these options.
 * The parameters works with the column names (course_id, name, type, lecturer, 
   date, room, places, start, end, semester, parent, visible,…) and the direction(
   ASC or DESC; stands for ascending and descending) but not with the content of
   the columns.
 * For example:
    order_parent=”type DESC, name” order_parent=”course_id”
 * In your case:
    [tpenrollments order_parent=”name DESC”]
 *  Thread Starter [unofficialmagellan](https://wordpress.org/support/users/unofficialmagellan/)
 * (@unofficialmagellan)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/#post-6648979)
 * OK.. thank you for the clarification. It definitely works as you describe without
   issue. Are there any plans that would affect the “Your Enrollments”. I use this
   so that members have a personalized schedule. I enroll them manually so when 
   they go to the site they can see a schedule that is customized just for them.
   Again thanks for ordering parameter it works great.
 *  Plugin Author [winkm89](https://wordpress.org/support/users/winkm89/)
 * (@winkm89)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/#post-6649022)
 * This needs a third order parameter (order_signups) and some more changes. Will
   be introduced with the next version. In the meantime, you can modify it manually
   in [/teachpress/core/database.php, line 2499](https://github.com/winkm89/teachPress/blob/master/core/database.php#L2499)(
   after ORDER BY).
 *  Thread Starter [unofficialmagellan](https://wordpress.org/support/users/unofficialmagellan/)
 * (@unofficialmagellan)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/#post-6649025)
 * Worked like a champ! Thank you very much.

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

The topic ‘Sort tpenrollments’ is closed to new replies.

 * ![](https://ps.w.org/teachpress/assets/icon-256x256.png?rev=1110789)
 * [teachPress](https://wordpress.org/plugins/teachpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/teachpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/teachpress/)
 * [Active Topics](https://wordpress.org/support/plugin/teachpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/teachpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/teachpress/reviews/)

## Tags

 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * 6 replies
 * 2 participants
 * Last reply from: [unofficialmagellan](https://wordpress.org/support/users/unofficialmagellan/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/sort-tpenrollments/#post-6649025)
 * Status: resolved