 
   updateOrder: (element) =>
     oldOrder = @state.profileOrder
-    newOrder = $(@refs.pages).sortable('toArray')
+    newOrder = $(@refs.pages).sortable('toArray', attribute: 'data-id')
 
     id = element.attr 'id'
 

    anchorHeight = window.innerHeight * 0.5

    if osu.bottomPage()
      @_setMode _.last(pages).id
      return

    # FIXME: I don't remember why this one scans from bottom while

      pageTop = page.getBoundingClientRect().top
      continue unless pageTop <= anchorHeight

      @_setMode page.dataset.id
      return

    @_setMode page.dataset.id


  _modeSwitch: (_e, mode) =>
