From 001794591f382248b0acc9e9eef9b99514ac4420 Mon Sep 17 00:00:00 2001
From: MtH <mth@mth.moe>
Date: Sat, 3 Apr 2021 02:03:53 +0200
Subject: [PATCH] sort notes on countdown, fixes layering issue on thorns

---
 source/PlayState.hx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source/PlayState.hx b/source/PlayState.hx
index 0987aa96e..89b193b0e 100644
--- a/source/PlayState.hx
+++ b/source/PlayState.hx
@@ -1029,6 +1029,8 @@ class PlayState extends MusicBeatState
 			}
 			else if (dad.curCharacter == 'spooky' && !dad.animation.curAnim.name.startsWith("sing"))
 				dad.dance();
+			if (generatedMusic)
+				notes.sort(sortNotes, FlxSort.DESCENDING);
 
 			var introAssets:Map<String, Array<String>> = new Map<String, Array<String>>();
 			introAssets.set('default', ['ready', "set", "go"]);