# Hubdb API hs\_id

**URL:** <https://community.hubspot.com/t/hubdb-api-hs-id/98186>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [January 19, 2024, 2:08am UTC](https://community.hubspot.com/t/hubdb-api-hs-id/98186 "2024-01-19T02:08:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PAlapati](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@PAlapati](https://community.hubspot.com/u/PAlapati)\
**Post date:** [January 19, 2024, 2:08am UTC](https://community.hubspot.com/t/hubdb-api-hs-id/98186/1 "2024-01-19T02:08:30Z")

</div>

Hi All,

Why is that hs\_id of latest tow is sometimes smaller than row before ? Can we ensure the hs\_id of latest row is always larger than previous rows ? Am trying to sort my value based on hs\_id and sometimes this is becoming an issue ? Can some one help on this ?

Thanks,

Prathima

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [January 19, 2024, 6:11am UTC](https://community.hubspot.com/t/hubdb-api-hs-id/98186/2 "2024-01-19T06:11:31Z")

</div>

Hi @PAlapati 👋

As far as I’m aware, HubDB Row IDs and Column IDs should be “increasing, but not necessarily sequential”. Could it be that rows and/or columns in the given HubDB table have been manually re-ordered after creation?

I hope this proves useful. Please let me know if you have any follow-up questions.
