       # will work when there are less than 1000000 assignments in an assignment_group
       return (diffOfAssignmentGroupPosition * 1000000) + diffOfAssignmentPosition
 
-    compareAssignmentDueDates: (a, b) =>
+    compareAssignmentDueDates: (a, b) ->
       aDate = if a.object.due_at then (+a.object.due_at / 1000) else Number.MAX_VALUE
       bDate = if b.object.due_at then (+b.object.due_at / 1000) else Number.MAX_VALUE
       if aDate is bDate

      , 200)
      loading

    setExportButtonTitle: (updated_title) =>
      $($('#download_csv').children('span').contents()[2]).replaceWith(updated_title)

    studentNamesToggle: (e) =>

          )
      , 2000)

    initPreviousGradebookExportLink: () ->
      link = $('#csv_export_options').children('li').last().children()
      link.on 'click', (event) ->
        event.preventDefault()
