Sort by Time

Puts lines in order by the time of day in them, earliest or latest first, mixing 12-hour and 24-hour times, and keeps the rest of each line with its time.

Advertisement

Time formats it reads

  • 24-hour: 9:30, 14:05, 23:59:59, and 14h30 as written in French
  • 12-hour: 2:30 pm, 2:30PM, 9am, 9 p.m.
  • Words: noon, midday, midnight
  • Race and lap times: 4:32.15, 1:02:03

The time can be anywhere in the line. If a line has more than one, the first one counts, so for “9:00–10:30 Workshop” it’s the start time. Lines without a time move to the top (to the bottom when sorting latest first), and lines with the same time keep their original order.

Times without am or pm

They are read as 24-hour times, so 2:30 is early morning and comes before 9:00. If your list means the afternoon, add pm to those times, or write them as 24-hour times (14:30).

Times with dates

This tool looks only at the time of day, so it’s good for questions like “who starts earliest?” across several days. To put dated lines in order with the time as a tie-breaker, use Sort by date.

A day’s schedule

Before
2:30 pm Team meeting
9am Standup
Noon Lunch with Sam
11:15 Dentist
6:45 p.m. Choir practice
8:05 Train
After
8:05 Train
9am Standup
11:15 Dentist
Noon Lunch with Sam
2:30 pm Team meeting
6:45 p.m. Choir practice

Log lines, latest first (the dates are ignored)

Before
2026-10-03 09:12:44 backup started
2026-10-01 23:58:02 disk full
2026-10-02 14:30:00 user login
2026-10-03 09:12:07 cron ran
After
2026-10-01 23:58:02 disk full
2026-10-02 14:30:00 user login
2026-10-03 09:12:44 backup started
2026-10-03 09:12:07 cron ran

Lap times, fastest first

Before
Jordan 4:41.30
Priya 4:32.15
Marco 5:02.08
Lee 4:32.09
After
Lee 4:32.09
Priya 4:32.15
Jordan 4:41.30
Marco 5:02.08

Questions

Can it sort race results or durations?

Yes, as long as they’re written the same way. A list of all minutes:seconds (4:32.15) or all hours:minutes:seconds (1:02:03) sorts correctly. A list that mixes the two doesn’t, because 59:10 could be minutes or hours.

Is my list sent anywhere?

No. The sorting happens in your browser and nothing is uploaded.