question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ordering of calendar events

See original GitHub issue

Describe the bug

I am building a calendar where there are two types of events: built-in events, like Christmas, and events that are user-created, like a holiday.

I am ordering my events array with the built-in events first in the hope that they will appear at the top of the calendar, but there seems to be no logic to the order in which they are rendered.

So my question: Is there a way to guarantee the order of the events as they are rendered to the calendar?

Versions

  • @angular/core: 6.1.4
  • angular-calendar: 0.26.0
  • Browser name and version: Chrome Version 68.0.3440.106

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maxprais1commented, Oct 12, 2018

@mattlewis92 Thank you so much it works perfectly!

1reaction
maxprais1commented, Sep 26, 2018

Exactly, that’s what I’m looking for! Let me know if I can help in any other way

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort Order of Events in Calendar Views
Sort Order of Events in Calendar Views · 1. Start time · 2. End time · 3. Sub-calendar order · 4. Title (alphabetically) ......
Read more >
How do I change the order of events in the feed?
By default, entries are ordered based upon the last update time of the entry. You can choose to sort events by occurrence time...
Read more >
Order Events by Post Date in the Main WordPress Post Query
In this article, we'll show you how to order events by post date in the main WordPress post query, using a custom snippet...
Read more >
How to reorder Calendar events - BeeVisual
Tap on the day with the events that you want to reorder. A yellow box will highlight your selection.
Read more >
eventOrder - Docs - FullCalendar
Determines the ordering events within the same day. ... For most views, this determines the vertical ordering of events within the same day....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found