From 7f877344d60f5c92b8a5595b07f482f4be98ff9e Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 13 Mar 2013 19:47:19 -0400 Subject: [PATCH] added comment to explain sorting --- common/static/coffee/src/discussion/discussion.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/static/coffee/src/discussion/discussion.coffee b/common/static/coffee/src/discussion/discussion.coffee index 2a92091f53..83e25e1da7 100644 --- a/common/static/coffee/src/discussion/discussion.coffee +++ b/common/static/coffee/src/discussion/discussion.coffee @@ -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