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
Standardize date strings
Parse the date-like strings into sortable YYYY-MM-DD strings.
standard dates
Sort chronologically
Sort by the standard date from earliest to latest.
chronological sort
Draw the ordered visual
The ordered visual uses the sorted dates with values 5, 6, and 7.