Preserve ordering through a table conversion

Use the opposite Shift key for paired punctuation. · 151 words

Ask an assistant to convert three weather notes into a JSON table, meaning an array of row objects with keys order, day, high_c, low_c, and summary. Give this source: 1. March 3, high 12 C, low 4 C, light rain; 2. March 1, high 18 C, low 9 C, sunny; 3. March 2, high 15 C, low 7 C, cloudy. State, Keep rows in numbered source order. Do not sort by day, temperature, or summary. The rule matters because sorting by date would move March 1 first.

Require one output row per source line, valid JSON, and no added facts. A checkable result is [{"order":1,"day":"March 3","high_c":12,"low_c":4,"summary":"light rain"},{"order":2,"day":"March 1","high_c":18,"low_c":9,"summary":"sunny"},{"order":3,"day":"March 2","high_c":15,"low_c":7,"summary":"cloudy"}]. A checker can compare each row's order value with the source number, then confirm that the day, temperatures, and summary still match. Including an order column does not replace the instruction: the model must both label each row and retain the sequence.

Check your recall

How can a prompt preserve source order when converting notes into a table, and how should a checker verify it?

Check your answer

The prompt should number the source lines and explicitly forbid sorting. The checker should compare the row positions and order values with those source numbers, while also confirming that every row's remaining values match its source note.

Sources and credits

Original KeyTouch lesson. Background reading · JSON Schema · Understanding JSON Schema.