             tempRes.push objected
             collectRelations objected
 
-  fecthRelatedItems:(itemId, callback)->
+  fetchRelatedItems:(itemId, callback)->
     query = """
       start koding=node:koding("id:#{itemId}")
       match koding-[r]-all
       return all, r
-      order by koding.`meta.createdAtEpoch` DESC
+      order by r.createdAtEpoch DESC
     """
 
     @db.query query, {}, (err, results) ->

          if not respond[type] then respond[type] = []
          respond[type].push obj
        callback err, respond


  fetchNewInstalledApps:(group, startDate, callback)->
    {groupId} = group

        collectRelations = race (i, res, fin)=>
          id = res.id

          @fetchRelatedItems id, (err, relatedResult)=>
            if err
              callback err
              fin()
