Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
0f324b06
Commit
0f324b06
authored
Jan 29, 2017
by
Joost Rijneveld
Browse files
Merge branch '304-events-list-sort' into 'master'
Fix order events in list view Closes
#304
See merge request
!331
parents
a2d3b555
3ee1f74a
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/static/events/js/calendarlistview.js
View file @
0f324b06
...
...
@@ -24,7 +24,7 @@ ListView = View.extend({ // make a subclass of View
}
events
.
sort
(
function
(
a
,
b
)
{
return
a
.
start
>
b
.
start
;
return
a
.
start
<
b
.
start
?
-
1
:
a
.
start
>
b
.
start
?
1
:
0
;
});
for
(
var
i
=
0
;
i
<
events
.
length
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment