pub async fn reorder_profiles(
app: AppHandle,
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.