feat(start): list tutorial videos newest first

The playlist page lists oldest-first; reverse before persisting so the
cached listing and offline launches share the order.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Fable 5 committed 2026-07-22 16:24:34 +03:00
1 parent c879b4294a
commit ba73c48aec
1 file changed
+5
+5
View File
@@ -158,6 +158,11 @@ pub fn fetch_playlist() -> Result<Vec<VideoEntry>, String> {
return Err("no video titles resolved".into());
}
// The playlist page lists oldest-first; the Start page wants the newest
// tutorials on top. Reversed before persisting, so the cached listing
// (and every later offline launch) shares the same order.
out.reverse();
// Persist the listing so the next launch starts from it.
if let Some(d) = &dir {
let listing: String = out