use Max time rather than Min so items are ordered correctly