Commit 7f877344 by Your Name

added comment to explain sorting

parent 896ee094
...@@ -62,8 +62,7 @@ if Backbone? ...@@ -62,8 +62,7 @@ if Backbone?
#The comment client asks each thread for a value by which to sort the collection #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 #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 #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 #for pinned threads, ensuring that they appear first, (which is the intent of pinned threads)
#the negative is to display most recent first
# #
if thread.get('pinned') if thread.get('pinned')
#use tomorrow's date #use tomorrow's date
...@@ -76,7 +75,7 @@ if Backbone? ...@@ -76,7 +75,7 @@ if Backbone?
sortByDateRecentFirst: (thread) -> sortByDateRecentFirst: (thread) ->
# #
#Same as above #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') if thread.get('pinned')
#use tomorrow's date #use tomorrow's date
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment