Read the Order

Start with three rows whose date text is out of order and not written the same way. Standardize each date to YYYY-MM-DD. Then sort chronologically: 2024-01-01, 2024-01-02, 2024-01-03. The final plot uses the sorted dates, not the original row order.

A tiny date-order cleanup: parse mixed date-like strings into sortable YYYY-MM-DD dates, sort chronologically, and draw the ordered values.

highlighted = computed this step

Load out-of-order dates

Start with 3 pinned rows whose date-like strings are not in chronological order.

raw date strings\text{raw date strings}
Raw Date-Like Stringsrowdate textvaluer11/3/20247r22024-01-015r301-02-20246

Standardize date strings

Parse the date-like strings into sortable YYYY-MM-DD strings.

standard dates\text{standard dates}
Standardized Date Stringsrowdate textstandard datevaluer11/3/20242024-01-037r22024-01-012024-01-015r301-02-20242024-01-026

Sort chronologically

Sort by the standard date from earliest to latest.

chronological sort\text{chronological sort}
Rows Sorted by Standard Daterowdate textstandard datevaluer22024-01-012024-01-015r301-02-20242024-01-026r11/3/20242024-01-037

Draw the ordered visual

The ordered visual uses the sorted dates with values 5, 6, and 7.

ordered visual\text{ordered visual}
Values in chronological orderstandard datevalue0246852024-01-0162024-01-0272024-01-03