Title: Sorting Eventlist ASC
Last modified: February 15, 2017

---

# Sorting Eventlist ASC

 *  Resolved [jfritsch](https://wordpress.org/support/users/jfritsch/)
 * (@jfritsch)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/)
 * Hi, i installed the newest version 6.0 of your very good plugin. It would be 
   very useful to have an attribute “sort-order” (or similar) so it’s possible to
   list events in ascending order. I only found a way to achieve this by changing
   the source code in vsel-all.php:
    $vsel_query_args = array( ‘post_type’ => ‘event’,‘
   event_cat’ => $vsel_atts[‘event_cat’], ‘post_status’ => ‘publish’, ‘ignore_sticky_posts’
   => true, ‘meta_key’ => ‘event-date’, ‘orderby’ => ‘meta_value_num’, ‘order’ =
   > ‘asc’, ‘posts_per_page’ => $vsel_atts[‘posts_per_page’], ‘paged’ => $paged );
   I did not find another way…

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

 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8812092)
 * Hi,
 * I did not add this because I thought this wasn’t necessary for my plugin: why
   should you want to change this order?
 * Guido
 *  Thread Starter [jfritsch](https://wordpress.org/support/users/jfritsch/)
 * (@jfritsch)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8812271)
 * Hi,
    thank you for replying! My customer wants a short list of recent events 
   in descending order on frontpage and a list of all events in ascending order 
   on an extra page. Joe
 *  [Richard Slade](https://wordpress.org/support/users/raslade/)
 * (@raslade)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8812304)
 * Sorry to interrupt the post, I needed a similar thing but managed to sort this
   via a plugin called WP Order by. [https://wordpress.org/plugins/wp-order-by/](https://wordpress.org/plugins/wp-order-by/)
 * Richard
    -  This reply was modified 9 years, 3 months ago by [Richard Slade](https://wordpress.org/support/users/raslade/).
 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8815836)
 * Hi guys,
 * It’s only a minor change so I can do this in next version. Never thought changing
   this order could be something user wants, so that’s why I’ve hardcoded it.
 * Guido
 *  Thread Starter [jfritsch](https://wordpress.org/support/users/jfritsch/)
 * (@jfritsch)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8816163)
 * Thank you Guido, thats very helpful for me!
    Joe
 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8839179)
 * You’re welcome. I’ve updated plugin several days ago.
 * Example changing default events order:
 *     ```
       [vsel order=desc]
       ```
   
 * In case you’re using the widget, add this attribute:
 *     ```
       order=desc
       ```
   
 * Guido
 *  Thread Starter [jfritsch](https://wordpress.org/support/users/jfritsch/)
 * (@jfritsch)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8839270)
 * Perfect service!
    Thank You!!! Joe
 *  [pcgs51](https://wordpress.org/support/users/pcgs51/)
 * (@pcgs51)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-8980477)
 * This thread confuses me. My installation of this plugin displays the farthest
   out event date first and the closest upcoming event last in my widget list.
 * I needed to display them using order=asc and had to use this attribute to make
   it work.
 *  [nicolafw](https://wordpress.org/support/users/nicolafw/)
 * (@nicolafw)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-9013880)
 * I have the same problem as pcgs51. My list is ordered descending, I want it ascending.
   Can you help please?
 *  [nicolafw](https://wordpress.org/support/users/nicolafw/)
 * (@nicolafw)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-9013884)
 * I found the solution. Just add `order=asc`
 * So it is
    `[vsel-all-events order=asc]`
 *  [nicolafw](https://wordpress.org/support/users/nicolafw/)
 * (@nicolafw)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-9013957)
 * I was to quick. The date is fine now, but the times on the same day is still 
   descending. See here: [http://www.lerjentours.ch/spazierbuero-festival/](http://www.lerjentours.ch/spazierbuero-festival/)
   
   How can I solve this?
 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-9032211)
 * Hi,
 * Please create your own topic next time, this one was resolved already. Normally
   I don’t check older resolved topics.
 * In case of multiple events on the same date, they will be ordered by post ID.
   Currently I have no alternative for this, sorry. Cannot order on value time because
   that field is a regular text input.
 * Guido
 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-9032219)
 * [@pcgs51](https://wordpress.org/support/users/pcgs51/) – I think you selected
   to display ALL events in your widget > this means upcoming and past events are
   displayed in one list. Events in future first.
 * Guido

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

The topic ‘Sorting Eventlist ASC’ is closed to new replies.

 * ![](https://ps.w.org/very-simple-event-list/assets/icon-256x256.png?rev=1415754)
 * [VS Event List](https://wordpress.org/plugins/very-simple-event-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/very-simple-event-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/very-simple-event-list/)
 * [Active Topics](https://wordpress.org/support/plugin/very-simple-event-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/very-simple-event-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/very-simple-event-list/reviews/)

## Tags

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

 * 13 replies
 * 5 participants
 * Last reply from: [Guido](https://wordpress.org/support/users/guido07111975/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/sorting-eventlist-asc/#post-9032219)
 * Status: resolved