   constructor: (data) ->
     @data ?= data
     @tagMap = @buildTagMap(@data.tag_map)
-    @unreadEntries = @sortUnread(data.unread_entries)
+    @unreadEntries = @sort(data.unread_entries)
     counts = @organizeCounts(@unreadEntries)
     @byFeed = counts.byFeed
     @byTag = counts.byTag

    object[item[0]] = item[1] for item in tagArray
    object

  feedId: (unreadEntry) ->
    unreadEntry[0]

  entryId: (unreadEntry) ->
    unreadEntry[1]

  published: (unreadEntry) ->
    unreadEntry[2]

class Counts
  instance = null

            @byTag[tagId].splice(entryIndex, 1);

  markEntryUnread: (entryId, feedId, published) ->
    unreadEntry = @buildEntry
      feedId: feedId
      entryId: entryId
      published: published
    @unreadEntries.push(unreadEntry)
    @unreadEntries = @sort(@unreadEntries)
    counts = @organizeCounts(@unreadEntries)
    @byFeed = counts.byFeed
    @byTag = counts.byTag
    @unread = counts.all
