Commit 1f86e54
authored
Sort exercise records by weight descending (#113)
- Updated record rendering to sort fetched exercise records before displaying them in the table. Records are now ordered by weight descending (heaviest first), and for equal weights by reps ascending (fewest reps first), matching your requested top-to-bottom order.
- Switched empty-state and caption logic to use the sorted list, keeping the “no records” and context messaging behavior consistent after sorting.
------
[Codex Task](https://chatgpt.com/codex/tasks/task_e_698c3e1f243c83258e357104e9028d7f)1 parent a8a51f4 commit 1f86e54
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
353 | 355 | | |
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
357 | | - | |
| 359 | + | |
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
363 | | - | |
| 365 | + | |
364 | 366 | | |
365 | 367 | | |
366 | 368 | | |
| |||
376 | 378 | | |
377 | 379 | | |
378 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
379 | 388 | | |
380 | 389 | | |
381 | 390 | | |
| |||
0 commit comments