diff --git a/app/routes/pitstop.py b/app/routes/pitstop.py index dde6742..589b0b5 100644 --- a/app/routes/pitstop.py +++ b/app/routes/pitstop.py @@ -226,5 +226,6 @@ def get_pit_stops(): "regulars": vehicle.regulars, } user["vehicles"].append(v) + user["vehicles"].sort(key=lambda v: (v.data[-1].date, v.data[-1].odometer or 0 )) return render_template("pitstops.html", user=user)