# Sorting problem with dynamic hubdb table

**URL:** <https://community.hubspot.com/t/sorting-problem-with-dynamic-hubdb-table/67274>\
**Category:** CMS Development\
**Created:** [October 17, 2022, 1:37pm UTC](https://community.hubspot.com/t/sorting-problem-with-dynamic-hubdb-table/67274 "2022-10-17T13:37:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insynctraining](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/insynctraining/32/26012_2.png) [@Insynctraining](https://community.hubspot.com/u/Insynctraining)\
**Post date:** [October 17, 2022, 1:37pm UTC](https://community.hubspot.com/t/sorting-problem-with-dynamic-hubdb-table/67274/1 "2022-10-17T13:37:08Z")

</div>

Hi -

We lost the developer who wrote the code to sort a dynamic hubdb table. In short, it only sorts on month, then day. So now when we add new 2023 calendar dates, it’s diplaying the January 2023 dates before the rest of out 2022 dates.

We just started to work with a new developer, but he was hit by hurrican Ian, and is not back to work yet.

Is that anyone willing to help us? I know where the code is, I am just not capable of changing it.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 18, 2022, 9:13am UTC](https://community.hubspot.com/t/sorting-problem-with-dynamic-hubdb-table/67274/2 "2022-10-18T09:13:07Z")

</div>

Hey [@](https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041)[Insynctraining](https://community.hubspot.com/t5/user/viewprofilepage/user-id/89056)

**Hey there no issues, just take a look at the links given below :**

- [**https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-data-based-on-today-s-date/td-p/24919**](https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-data-based-on-today-s-date/td-p/24919)

- [**https://community.hubspot.com/t5/CMS-Development/Filter-Hubdb-by-year/td-p/642577**](https://community.hubspot.com/t5/CMS-Development/Filter-Hubdb-by-year/td-p/642577)

- [**https://www.stephanieogaygarcia.com/hubspot-website-development/sort-a-hubdb-query-by-date**](https://www.stephanieogaygarcia.com/hubspot-website-development/sort-a-hubdb-query-by-date)

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.
