'Ensure that threads are being sorted properly by date/time.'

def test_threads_sort(self):

    d = DocumentFactory()
    t = ThreadFactory(document=d)
    t.new_post(creator=t.creator, content='foo')
    time.sleep(1)
    t2 = ThreadFactory(document=d)
    t2.new_post(creator=t2.creator, content='foo')
    given_ = ThreadsFeed().items(d)[0].id
    eq_(t2.id, given_)
