pub async fn reorder_profiles<R: Runtime>(
app: AppHandle<R>,
scheduler: State<'_, Scheduler>,
names: Vec<String>,
) -> Result<(), String>Expand description
Reorder profiles to match names exactly. The renderer sends the
full list — the call rejects length mismatches, duplicates, and
unknown names rather than try to merge.