diff --git a/HISTORY.md b/HISTORY.md index bd8c54d3..d4c234d4 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -39,6 +39,9 @@ * German * Chinese, thanks, Simon! +### 2021-10-11 +* objects: sort order of blocks in custom categories alphabetically in the unified palette + ### 2021-10-08 * objects: tweaked variable block visibility * objects: filter hidden blocks out from search / keyboard input results diff --git a/snap.html b/snap.html index 45d89803..2327d7c6 100755 --- a/snap.html +++ b/snap.html @@ -18,7 +18,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 7207bea2..144a0552 100644 --- a/src/objects.js +++ b/src/objects.js @@ -87,7 +87,7 @@ BlockVisibilityDialogMorph*/ /*jshint esversion: 6*/ -modules.objects = '2021-October-08'; +modules.objects = '2021-October-11'; var SpriteMorph; var StageMorph; @@ -166,7 +166,9 @@ SpriteMorph.prototype.blockColor = { SpriteMorph.prototype.customCategories = new Map(); // key: name, value: color SpriteMorph.prototype.allCategories = function () { - return this.categories.concat(Array.from(this.customCategories.keys())); + return this.categories.concat( + Array.from(this.customCategories.keys()).sort() + ); }; SpriteMorph.prototype.blockColorFor = function (category) {