# How to sort \`modulestore().get\_blocks()\` items in order presented in CMS dashboard page

**URL:** <https://discuss.openedx.org/t/how-to-sort-modulestore-get-blocks-items-in-order-presented-in-cms-dashboard-page/15320>\
**Category:** Development\
**Created:** [March 21, 2025, 3:10pm UTC](https://discuss.openedx.org/t/how-to-sort-modulestore-get-blocks-items-in-order-presented-in-cms-dashboard-page/15320 "2025-03-21T15:10:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zachary\_Trabookis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/zachary_trabookis/32/753_2.png) [@Zachary\_Trabookis](https://discuss.openedx.org/u/Zachary_Trabookis)\
**Post date:** [March 21, 2025, 3:10pm UTC](https://discuss.openedx.org/t/how-to-sort-modulestore-get-blocks-items-in-order-presented-in-cms-dashboard-page/15320/1 "2025-03-21T15:10:53Z")

</div>

Does anyone know of a way to sort the results of `modulestore().get_blocks()` call to sort the block items in the same order as presented on the CMS course dashboard page?

This seems like a straight forward solution by traversing the children.

> <https://github.com/openedx/edx-platform/blob/master/lms/djangoapps/support/tasks.py#L36-L44>

cc @dave
