fixes to chrono sort