   
   @method 'sort', ->
     self = this
-    @_mapping.sort @sortFunction()
-    if @_loaded
-      tbody = $('tbody', @_tableElement)
-      for index in @_mapping
-        tbody.append $('tr.item' + index, @_tableElement)
+    if sortFunction = @sortFunction()
+      @_mapping.sort sortFunction
+      if @_loaded
+        tbody = $('tbody', @_tableElement)
+        for index in @_mapping
+          tbody.append $('tr.item' + index, @_tableElement)
     
   @method 'render', ->
     @renderTable()

    if oldSortColumn == sortColumn
      @_reverseSort = !@_reverseSort
    else
      @_reverseSort = sortColumn.reverse || false
      
    @_sortColumn = sortColumn
    

        item.get column.field
      else if item
        item[column.field]
  
  @method 'refreshTable', ->
    if @_loaded
      @refreshHeader()
      @refreshBody()
  
  @method 'refreshHeader', ->
    if @_loaded
