# How to correctly put a block from a class into a group

**URL:** <https://forum.makecode.com/t/how-to-correctly-put-a-block-from-a-class-into-a-group/26733>\
**Category:** Help\
**Tags:** extension\
**Created:** [February 7, 2024, 6:28pm UTC](https://forum.makecode.com/t/how-to-correctly-put-a-block-from-a-class-into-a-group/26733 "2024-02-07T18:28:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARandomGuyOnMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/arandomguyonmakecode/32/22983_2.png) [@ARandomGuyOnMakeCode](https://forum.makecode.com/u/ARandomGuyOnMakeCode)\
**Post date:** [February 7, 2024, 6:28pm UTC](https://forum.makecode.com/t/how-to-correctly-put-a-block-from-a-class-into-a-group/26733/1 "2024-02-07T18:28:10Z")

</div>

How would you put a block from a class in a specific group? Whenever I try to do this, the group becomes the first group shown in blocks, even if it’s not supposed to be. How would I stop this from happening?

Example of how I put block from class into a group:

```auto
class Example {
   //% group="ExampleGroup"
   //% blockCombine
   classproperty: any
}

```

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [February 7, 2024, 10:08pm UTC](https://forum.makecode.com/t/how-to-correctly-put-a-block-from-a-class-into-a-group/26733/2 "2024-02-07T22:08:03Z")

</div>

You can order the groups that show up in your category by putting an annotation on top of the namespace like this:

```auto
//% groups='["Tilemaps", "Tiles", "Events", "Connections", "Camera"]'
namespace tileUtil {
}

```

Note the use of quotes there! Surrounded in single quotes with each item in double quotes.

---

<div class="post-metadata">

**Author:** ![ARandomGuyOnMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/arandomguyonmakecode/32/22983_2.png) [@ARandomGuyOnMakeCode](https://forum.makecode.com/u/ARandomGuyOnMakeCode)\
**Post date:** [February 7, 2024, 10:18pm UTC](https://forum.makecode.com/t/how-to-correctly-put-a-block-from-a-class-into-a-group/26733/3 "2024-02-07T22:18:50Z")

</div>

I thought I already did this, but it seems like I didn’t. My bad.
