Problem Brief
Build a reorderable priority checklist supporting keyboard/accessible Move Up & Move Down buttons alongside HTML5 drag attributes.
Requirements
- Render `.reorder-item` rows inside `[data-testid="reorder-list"]` with `draggable="true"`.
- Clicking `[data-move-up]` swaps item with `index - 1`; `[data-move-down]` swaps with `index + 1`.
- Keep Move Up disabled on first row and Move Down disabled on last row.
Progressive Hints (1)
- Swap array elements `[list[i], list[j]] = [list[j], list[i]]` and re-render list cleanly.
Reference Solution
Stuck? Load the verified reference code into your editor.
Automated Test Suite
1 Test Cases Ready- Swaps rows Up/Down and locks boundary buttonsMoving middle row Up promotes it to index 0
Live Sandboxed Previewiframe sandbox