Switch to linear search for id since date ordered