# Morris sensitivity

**URL:** <https://uqworld.org/t/morris-sensitivity/1355>\
**Category:** UQ Resources\
**Tags:** sensitivity\
**Created:** [October 24, 2021, 8:49pm UTC](https://uqworld.org/t/morris-sensitivity/1355 "2021-10-24T20:49:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Ehsani](https://uqworld.org/user_avatar/uqworld.org/mohammad_ehsani/32/946_2.png) [@Mohammad\_Ehsani](https://uqworld.org/u/Mohammad_Ehsani)\
**Post date:** [October 24, 2021, 8:49pm UTC](https://uqworld.org/t/morris-sensitivity/1355/1 "2021-10-24T20:49:20Z")

</div>

Working with the **uq\_create\_morris\_trajectory** function and it tries to find the derivative index (DerIdx) from the permutation matrix (P). However, I wonder why the temporary order is sorted (sort(TempDerIdx)). To me, not sorting will yield the correct result?

---

<div class="post-metadata">

**Author:** ![Mohammad\_Ehsani](https://uqworld.org/user_avatar/uqworld.org/mohammad_ehsani/32/946_2.png) [@Mohammad\_Ehsani](https://uqworld.org/u/Mohammad_Ehsani)\
**Post date:** [November 2, 2021, 9:20pm UTC](https://uqworld.org/t/morris-sensitivity/1355/2 "2021-11-02T21:20:41Z")

</div>

Checking again, as expected, I was making a mistake and the sorting is necessary because the permutation matrix determines the derivative index position and the sorting determines the derivative index of the intended variable.

The coding of this part is very concise and smart.
