# How are Targets ordered?

**URL:** <https://forum.communityhealthtoolkit.org/t/how-are-targets-ordered/547>\
**Category:** Technical Support\
**Tags:** documentation, targets, configuration\
**Created:** [January 15, 2020, 11:46pm UTC](https://forum.communityhealthtoolkit.org/t/how-are-targets-ordered/547 "2020-01-15T23:46:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/michael/32/319_2.png) [@michael](https://forum.communityhealthtoolkit.org/u/michael)\
**Post date:** [January 15, 2020, 11:46pm UTC](https://forum.communityhealthtoolkit.org/t/how-are-targets-ordered/547/1 "2020-01-15T23:46:22Z")

</div>

Based on [this](https://github.com/medic/medic-docs/blob/master/configuration/developing-community-health-applications.md#targets) documentation, I can see that `context` can be used to control whether or not a Target is visible, but it’s not clear what controls the _order_ of Targets. Is it based on the order in which they are in the `targets.js` file?

---

<div class="post-metadata">

**Author:** ![marc](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/marc/32/602_2.png) [@marc](https://forum.communityhealthtoolkit.org/u/marc)\
**Post date:** [January 16, 2020, 12:50am UTC](https://forum.communityhealthtoolkit.org/t/how-are-targets-ordered/547/2 "2020-01-16T00:50:12Z")

</div>

The order they show in the app is determined by their order in the app\_settings.json file. Since targets.js is compiled into the app\_settings file, that means the order of the targets in targets.js determines the order the app.

That seems like a good thing to clarify in the documentation — please feel free to edit the doc and create a PR!

---

<div class="post-metadata">

**Author:** ![michael](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/michael/32/319_2.png) [@michael](https://forum.communityhealthtoolkit.org/u/michael)\
**Post date:** [January 16, 2020, 6:03pm UTC](https://forum.communityhealthtoolkit.org/t/how-are-targets-ordered/547/3 "2020-01-16T18:03:38Z")

</div>

I’ve edited and submitted the PR, thanks!

---

<div class="post-metadata">

**Author:** ![marc](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/marc/32/602_2.png) [@marc](https://forum.communityhealthtoolkit.org/u/marc)\
**Post date:** [January 16, 2020, 6:32pm UTC](https://forum.communityhealthtoolkit.org/t/how-are-targets-ordered/547/4 "2020-01-16T18:32:32Z")

</div>

Nice work!

PR is approved and ready to merge.
