From 1dd617bbd019c7c3ed55ae5b01d2c56383eadd17 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Wed, 16 Sep 2020 01:18:14 -0600 Subject: [PATCH] Fix the editor's cell sort direction --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 084afd3..9df28f4 100644 --- a/js/main.js +++ b/js/main.js @@ -1129,7 +1129,7 @@ class Editor extends PrimaryView { } } cell.push({type}); - cell.sort((a, b) => b.type.draw_layer - a.type.draw_layer); + cell.sort((a, b) => a.type.draw_layer - b.type.draw_layer); } } }