Skip to main content

How do I sort my events alphabetically?

Official response from

In a calendar page, events are sorted by date. However, someone recently wanted to sort them alphabetically because all of them were on the same date (so the date-sorting was not useful in finding the event that you were looking for). Here was our solution:


In your calendar page, you can add this line of code to the very top of the page template:

{% assign alphasort = page.calendar.events_upcoming | sort: 'headline' %}

Then, you could change the following line, which shows up twice in the page template (for my website's calendar page it's on lines 78 and 88):

        {% for event in page.calendar.events_upcoming %}

To this:

        {% for event in alphasort %}

Share this post

Showing 1 reaction

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.