# Sort parameter doesn't work with updatedAt

**URL:** <https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [May 19, 2026, 10:32am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487 "2026-05-19T10:32:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 20, 2026, 4:13am UTC](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487/3 "2026-05-20T04:13:55Z")

</div>

Hi @msdev @STierney 👋

I’ve been able to replicate the issue flagged here by @msdev. The **sort** query parameter does not seem to be working as expected, at least according to [this documentation](https://developers.hubspot.com/docs/api-reference/latest/cms/blogs/authors/guide#sorting-and-paginating). Could you please take a deeper look into this, @STierney? 🙌

For example, the following 2 requests produced the exact same response, when actually we’d expect the 2 Author records to be ordered differently based on the supplied **sort** query parameter’s direction (i.e. _?sort=updatedAt_ and _?sort=-updatedAt_ -- where the difference between the 2 is the ‘-’ supplied immediately before updatedAt).

**Request 1**

```lia-code-sample
curl --location 'https://api.hubapi.com/cms/blogs/2026-03/authors?sort=-updatedAt' \
--header 'Authorization: Bearer pat-xxx-redacted-xxx'

```

**Request 2**

```lia-code-sample
curl --location 'https://api.hubapi.com/cms/blogs/2026-03/authors?sort=updatedAt' \
--header 'Authorization: Bearer pat-xxx-redacted-xxx'

```

**Identical response body for both above requests**

```lia-code-sample
{
 "total": 2,
 "results": [
 {
 "avatar": "https://app.hubspot.com/settings/avatar/d41d8cd98f00b204e9800998ecf8427e",
 "bio": "",
 "created": "2024-01-18T01:55:38.315Z",
 "deletedAt": "1970-01-01T00:00:00Z",
 "displayName": "Test Author",
 "email": "",
 "facebook": "",
 "fullName": "Test Author",
 "id": "90785153008",
 "language": "en",
 "linkedin": "",
 "name": "Test Author",
 "slug": "test-author",
 "twitter": "",
 "updated": "2024-01-18T01:55:38.315Z",
 "website": ""
 },
 {
 "avatar": "",
 "bio": "test author 2 bio",
 "created": "2026-05-20T03:52:49.745Z",
 "deletedAt": "1970-01-01T00:00:00Z",
 "displayName": "Test Author 2",
 "email": "test-author-2@example.com",
 "facebook": "",
 "fullName": "Test Author 2",
 "id": "407901951173",
 "language": "en",
 "linkedin": "",
 "name": "Test Author 2",
 "slug": "test-author-2",
 "twitter": "",
 "updated": "2026-05-20T03:52:49.745Z",
 "website": ""
 }
 ]
}

```

Furthermore, [the documentation’s “Sorting and paginating” example](https://developers.hubspot.com/docs/api-reference/latest/cms/blogs/authors/guide#sorting-and-paginating) seems to be incorrectly using the “POST” request method. Shouldn’t that be “GET” and then remove the “Content-Type” header?

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

---

_[View the full topic](https://community.hubspot.com/t/sort-parameter-doesnt-work-with-updatedat/149487)._
