Order events in the cluster so that the oldest is closest to the timestamp
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
<% events.each do | hour_column, cluster| %>
|
||||
<%= event_cluster_tag(*hour_column) do %>
|
||||
<%= render cluster %>
|
||||
<%= render cluster.sort_by(&:created_at).reverse %>
|
||||
|
||||
<%= local_datetime_tag cluster.first.created_at, class: "event__timestamp txt-small translucent" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user