# Test script to check the json data displayed alphabetically

**URL:** <https://community.postman.com/t/test-script-to-check-the-json-data-displayed-alphabetically/34519>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [April 15, 2022, 6:12pm UTC](https://community.postman.com/t/test-script-to-check-the-json-data-displayed-alphabetically/34519 "2022-04-15T18:12:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [April 16, 2022, 9:11am UTC](https://community.postman.com/t/test-script-to-check-the-json-data-displayed-alphabetically/34519/2 "2022-04-16T09:11:31Z")

</div>

@descent-module-cand6 Welcome to the community 🥳

I doubt this can be done directly. May be you can sort the keys and store in a variable and try to validate it against the original response.

Found a similar thread [here](https://community.postman.com/t/sort-json-response/32632/5). please check if that helps 😊

---

_[View the full topic](https://community.postman.com/t/test-script-to-check-the-json-data-displayed-alphabetically/34519)._
