                 metric: pseudoMetric.top
               ]
             setKey(key || state.key)
-            sortBy(Cols.find((c) -> c.category.id == 'slot' && c.metric.id == 'date'))
             if state.sort && col = Cols.find((c) -> c.category.id == state.sort.c && c.metric.id == state.sort.m)
-              sortBy(col, state.sort.currentSortDirection)
+              sortBy(col, state.sort.dir)
             fill()
             $scope.pivot.load(state.pivot)
             return

            info.cell = info.tr.appendChild(document.createElement('td'))
            generateText(info)
            return
          if info.category.id == 'slot' && info.slot.top
            generateCell(l-1) # summary
            info.cell.setAttribute("colspan", l)
            return

            currentSortDirection = !currentSortDirection
            Order.reverse()
          else
            unless currentSort
              Order.sort (i, j) -> byNumber(Rows[i].key?.id, Rows[j].key?.id)
            c = col.category.id
            m = col.metric.id
            sort (i) ->
