Adding optional sorting of prop values