From 27a28775d5a3bf13b994d12fc1993a46179b57b8 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 13 Jun 2014 15:47:30 -0700 Subject: [PATCH] corpus: sort tweets by their startDate too Change-Id: Ice2a7206a372b8777d5b0d0ffd701823b56f4828 --- pkg/index/corpus.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/index/corpus.go b/pkg/index/corpus.go index 0a1f98242..4d56c7a09 100644 --- a/pkg/index/corpus.go +++ b/pkg/index/corpus.go @@ -818,6 +818,8 @@ func (c *Corpus) typeSpecificNodeTimeLocked(nodeType string, pn blob.Ref) (t tim switch nodeType { case "foursquare.com:checkin": attr = "startDate" + case "twitter.com:tweet": + attr = "startDate" // TODO(mpl): other nodeTypes from importers default: return t, errUnsupportedNodeType