     thisStart = new Date(startDayForWeeks["" + userList])
     now = new Date()
     nowWeek = Math.floor((now - thisStart) / MSEC_IN_WEEK)
-    [(nowWeek - lastWeeksToShow + 1)..nowWeek]
+    res = [(nowWeek - lastWeeksToShow + 1)..nowWeek]
+    res.reverse()
 
 bgColor = (number) ->
     if !number

SolvedByWeekRowWithTheme = withTheme(SolvedByWeekRow)

class SolvedByWeek extends React.PureComponent
  componentDidMount: () ->
    if @table_div
        @table_div?.scrollTo 10000, 0

  render: () ->
    if not @props.users?.length
        return <table className={globalStyles.mainTable}/>


weekHeader = (weekNumber, weekCount, userList) ->
    thisStart = new Date(startDayForWeeks[userList])
    endDay = new Date(+thisStart + MSEC_IN_WEEK * (weekNumber + 1) - 1)
    startDay = new Date(+endDay - MSEC_IN_WEEK * weekCount + 1)
    endDay.getUTCDate() + "." + (endDay.getUTCMonth()+1) + "-" + startDay.getUTCDate() + "." + (startDay.getUTCMonth()+1)

Header = (props) ->
    cl = props.headerClass || "h1"
