pub fn sort_by_priority_owned(tasks: &mut [Task])
Canonical sort: priority ascending (P0 first), then creation date ascending.