# How to verify response is arranged in chronological date order?

**URL:** <https://community.postman.com/t/how-to-verify-response-is-arranged-in-chronological-date-order/17469>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [November 6, 2020, 1:01pm UTC](https://community.postman.com/t/how-to-verify-response-is-arranged-in-chronological-date-order/17469 "2020-11-06T13:01:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![immanuelsamuel](https://avatars.discourse-cdn.com/v4/letter/i/54ee81/32.png) [@immanuelsamuel](https://community.postman.com/u/immanuelsamuel)\
**Post date:** [November 6, 2020, 1:01pm UTC](https://community.postman.com/t/how-to-verify-response-is-arranged-in-chronological-date-order/17469/1 "2020-11-06T13:01:10Z")

</div>

I have a response with values for three dates, and I want to verify whether the response is arranged in chronological date order.  
Sample response:

```auto
"name": [
                {
                    "date": "2020-01-09",
                    "dateMs": 1578528000000,
                    "increase": {
                        "value": 41.54
                    }
                   
                },
                {
                    "date": "2020-01-12",
                    "dateMs": 1578787200000,
                    "increase": {
                        "value": 41.75
                    }
                },
                {
                    "date": "2020-02-10",
                    "dateMs": 1581292800000,
                    "increase": {
                        "value": 41.81
                    }
                  }

```

In this sample response three values are ordered chronologically. I need to verify it.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 6, 2020, 1:10pm UTC](https://community.postman.com/t/how-to-verify-response-is-arranged-in-chronological-date-order/17469/2 "2020-11-06T13:10:09Z")

</div>

What have you tried to do so far?

---

<div class="post-metadata">

**Author:** ![immanuelsamuel](https://avatars.discourse-cdn.com/v4/letter/i/54ee81/32.png) [@immanuelsamuel](https://community.postman.com/u/immanuelsamuel)\
**Post date:** [November 6, 2020, 4:02pm UTC](https://community.postman.com/t/how-to-verify-response-is-arranged-in-chronological-date-order/17469/3 "2020-11-06T16:02:01Z")

</div>

I’m very new to this. I tried to do using moment, sort order.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 6, 2020, 5:22pm UTC](https://community.postman.com/t/how-to-verify-response-is-arranged-in-chronological-date-order/17469/4 "2020-11-06T17:22:53Z")

</div>

Everyone was new at some point - it’s all good. We’re here to help 🏆

Do you have the code that you’re using available, maybe you’re close and it just needs some minor tweaks. 😄
