# Sort root folders alphabetically in the content area

**URL:** <https://community.bloomreach.com/t/sort-root-folders-alphabetically-in-the-content-area/4276>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [February 12, 2024, 2:18pm UTC](https://community.bloomreach.com/t/sort-root-folders-alphabetically-in-the-content-area/4276 "2024-02-12T14:18:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ms2024](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@ms2024](https://community.bloomreach.com/u/ms2024)\
**Post date:** [February 12, 2024, 2:18pm UTC](https://community.bloomreach.com/t/sort-root-folders-alphabetically-in-the-content-area/4276/1 "2024-02-12T14:18:50Z")

</div>

Hi,

is there a way to sort the documents root folders alphabetically in the content area? The function “Set folder sorting” is only available for the folders within the root folders.

Note: we are currently on bloomreach version 14.7.3

![sort root folder in content alphabetically](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/2X/4/4ac43c2f8d6c56a2ebdd0881808a1577ac93aaa8.png)

Thanks

---

<div class="post-metadata">

**Author:** ![Adam\_Pengh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/adam_pengh/32/988_2.png) [@Adam\_Pengh](https://community.bloomreach.com/u/Adam_Pengh)\
**Post date:** [February 12, 2024, 2:40pm UTC](https://community.bloomreach.com/t/sort-root-folders-alphabetically-in-the-content-area/4276/2 "2024-02-12T14:40:18Z")

</div>

Hi @ms2024,

You can sort the root document folder alphabetically by going to the /content/documents node in the CMS Console and setting the `frontend:orderChildFolders` mixin. This is the same mixin that gets set when you use the `Set folder sorting...` option to `Alphabetically` in the CMS.

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [February 12, 2024, 2:45pm UTC](https://community.bloomreach.com/t/sort-root-folders-alphabetically-in-the-content-area/4276/3 "2024-02-12T14:45:06Z")

</div>

Hi,  
This can be done but not from CMS, only through the /console app [1].  
Select the “root folder B” folder below /content/documents and use the “Up” arrow.

This is for existing environments. For a local dev environment, there’s the `.meta:order-before` option in yaml, see [2]

HTH  
Jeroen

[1] [Using the Console - Bloomreach Experience Manager (PaaS/Self-Hosted) - The Fast and Flexible Headless CMS](https://xmdocumentation.bloomreach.com/library/concepts/content-repository/using-the-console.html)  
[2] [YAML Format - Bloomreach Experience Manager (PaaS/Self-Hosted) - The Fast and Flexible Headless CMS](https://xmdocumentation.bloomreach.com/library/concepts/configuration-management/yaml-format.html)

---

<div class="post-metadata">

**Author:** ![ms2024](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@ms2024](https://community.bloomreach.com/u/ms2024)\
**Post date:** [February 12, 2024, 3:45pm UTC](https://community.bloomreach.com/t/sort-root-folders-alphabetically-in-the-content-area/4276/4 "2024-02-12T15:45:43Z")

</div>

Thanks for the quick replies. Both options worked for me
