Changeset d4d8f9d in Klonkt


Ignore:
Timestamp:
06/30/2026 03:00:39 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
98a1990
Parents:
1a0b007
Message:

feat(admin-audio): sort the track list newest-first

The /admin/audio track list ordered by position ASC, so new uploads (position = MAX+1) landed at
the bottom. Order by created_at DESC (position DESC tiebreak) so the newest track is on top.

  • src/routes/admin-audio.js — ORDER BY created_at DESC

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/admin-audio.js

    r1a0b007 rd4d8f9d  
    100100    LEFT JOIN media m ON m.id = t.media_id
    101101    WHERE t.site_id = ?
    102     ORDER BY t.position ASC, t.created_at ASC
     102    ORDER BY t.created_at DESC, t.position DESC
    103103  `).all(site.id);
    104104
Note: See TracChangeset for help on using the changeset viewer.