# Please i need help with banks

**URL:** <https://qa.fmod.com/t/please-i-need-help-with-banks/22250>\
**Category:** FMOD Studio\
**Tags:** unity\
**Created:** [November 1, 2024, 3:35am UTC](https://qa.fmod.com/t/please-i-need-help-with-banks/22250 "2024-11-01T03:35:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dusty\_Earth](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dusty_earth/32/7442_2.png) [@Dusty\_Earth](https://qa.fmod.com/u/Dusty_Earth)\
**Post date:** [November 1, 2024, 3:35am UTC](https://qa.fmod.com/t/please-i-need-help-with-banks/22250/1 "2024-11-01T03:35:25Z")

</div>

**guys i want to build banks with my order for example i want event 15 = pistol sound , now when i click build all sounds files build randomly not at my order or event order**

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [November 7, 2024, 4:31am UTC](https://qa.fmod.com/t/please-i-need-help-with-banks/22250/2 "2024-11-07T04:31:42Z")

</div>

Unfortunately the ordering of events in banks is non-deterministic. Events typically should be referenced via their [GUIDs and Paths](https://fmod.com/docs/2.02/studio/advanced-topics.html#guids-and-paths):

```js
    FMOD.Studio.EventDescription eventDescription;
    FMODUnity.RuntimeManager.StudioSystem.getEvent("event:/pistol", out eventDescription);

    FMOD.Studio.EventInstance eventInstance;
    eventDescription.createInstance(out eventInstance);

    eventInstance.start();
    eventInstance.release();

```

Is there any particular reason you need the ordering of events to be preserved?

---

<div class="post-metadata">

**Author:** ![Dusty\_Earth](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dusty_earth/32/7442_2.png) [@Dusty\_Earth](https://qa.fmod.com/u/Dusty_Earth)\
**Post date:** [November 7, 2024, 12:58pm UTC](https://qa.fmod.com/t/please-i-need-help-with-banks/22250/3 "2024-11-07T12:58:34Z")

</div>

i thought i can ordering the events sounds files

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [November 7, 2024, 10:07pm UTC](https://qa.fmod.com/t/please-i-need-help-with-banks/22250/4 "2024-11-07T22:07:04Z")

</div>

If you want to order all of the events, perhaps you could prefix each event name with a number such as “1 Pistol”, “2 Cat”, “3 Potato” and sort them alphabetically in code:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/a/ac828ec492a5d5747f0d98ba7ecf575036107fdf.png)

```ruby
FMOD.Studio.Bank bank;
FMOD.Studio.EventDescription[] descriptions;

RuntimeManager.StudioSystem.getBank("mybank", out bank);
var result = bank.getEventList(out descriptions);

Array.Sort(descriptions, (a1, a2) => {
   a1.getPath(out o1);
   a2.getPath(out o2);
   return String.Compare(o1, o2);
});

```
