check sell in date <= 5 first, then the others