         visible: visible
 
 
+  changeSort: (e) =>
+    e.preventDefault()
+    if @state.sortField == 'created_at'
+      @setState sortField: 'updated_at'
+    else
+      @setState sortField: 'created_at'
+
+
   expand: (e) =>
     e.preventDefault()
     $.publish 'beatmapDiscussionEntry:collapse', collapse: e.currentTarget.dataset.type

lp = 'beatmaps.discussions'

class BeatmapDiscussions.Discussions extends React.PureComponent
  render: =>
    discussions = @props.currentDiscussions[@props.mode]


              div className: "#{bn}__timeline-line hidden-xs"

            div null,
              @sortedDisussions().map @discussionPage

            @timelineCircle()

