From 967ea0c939d5b225e91371c442b8c1002cf0f601 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Fri, 27 Mar 2026 14:54:27 +0100 Subject: [PATCH] Audio channels are sorted with a stable sort --- src/dusk/imgui/ImGuiAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dusk/imgui/ImGuiAudio.cpp b/src/dusk/imgui/ImGuiAudio.cpp index 96bd854fbd..707091b158 100644 --- a/src/dusk/imgui/ImGuiAudio.cpp +++ b/src/dusk/imgui/ImGuiAudio.cpp @@ -82,7 +82,7 @@ static void InitChannelSortIndices() { static void SortChannelsByUpdateCount() { InitChannelSortIndices(); - std::ranges::sort( + std::ranges::stable_sort( channelSortIndices, [](u8 a, u8 b) { auto& jasChannelA = JASDSPChannel::sDspChannels[a];