             
             // draw cells
             
-            // for each day of the timeframe
-            for (day, _, offset) in dayTuples {
+            // for each author in the repo
+            for (i, author) in authorsInRepo.enumerate() {
                 
-                // for each author in the repo
-                for (i, author) in authorsInRepo.enumerate() {
+                // for each day of the timeframe
+                for (day, _, offset) in dayTuples {
                     
                     // set default color
                     var fillColor = NSColor.clearColor()

            
            let weekDay = calendar.component(.Weekday, fromDate:existingDate)
            
            daysInfo.append((day, weekDay, offset))
            
            let isDayOff = (weekDay == 1 || weekDay == 2)
            offset += isDayOff ? 2 : self.COL_WIDTH
            
            if existingDate.compare(toDate) != NSComparisonResult.OrderedAscending {
                stop.memory = true

                    return
            }
            
            let authorsInRepo = Array(Set(json.values.flatMap({ $0.keys }))).sort()
            
            // draw repo name
            c.drawText(repo, origin: P(LEFT_MARGIN_WIDTH, c.height() - self.TOP_MARGIN_HEIGTH - (currentRow) * ROW_HEIGHT - 18))
