corpus: sort tweets by their startDate too

Change-Id: Ice2a7206a372b8777d5b0d0ffd701823b56f4828
This commit is contained in:
Brad Fitzpatrick 2014-06-13 15:47:30 -07:00
parent f3a519d3e5
commit 27a28775d5
1 changed files with 2 additions and 0 deletions

View File

@ -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