Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7f877344
Commit
7f877344
authored
Mar 13, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added comment to explain sorting
parent
896ee094
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
common/static/coffee/src/discussion/discussion.coffee
+2
-3
No files found.
common/static/coffee/src/discussion/discussion.coffee
View file @
7f877344
...
...
@@ -62,8 +62,7 @@ if Backbone?
#The comment client asks each thread for a value by which to sort the collection
#and calls this sort routine regardless of the order returned from the LMS/comments service
#so, this takes advantage of this per-thread value and returns tomorrow's date
#for pinned threads, ensuring that they appear first, which is the intent of pinned threads
#the negative is to display most recent first
#for pinned threads, ensuring that they appear first, (which is the intent of pinned threads)
#
if
thread
.
get
(
'pinned'
)
#use tomorrow's date
...
...
@@ -76,7 +75,7 @@ if Backbone?
sortByDateRecentFirst
:
(
thread
)
->
#
#Same as above
#
the negative is to display most recent first (basically to flip the order
)
#
but negative to flip the order (newest first
)
#
if
thread
.
get
(
'pinned'
)
#use tomorrow's date
...
...
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