## Description
Originally posted in the community forum here: https://communi…ty.kobotoolbox.org/t/order-of-questions-rearranged-in-question-matrix/2087
Internal discussion: https://chat.kobotoolbox.org/#narrow/stream/7-UX.2FUI/topic/Order.20of.20questions.20rearranged.20in.20Question.20Matrix/near/32235
If a `matrix` question is created in the form-builder with several rows and some `select_*` type questions in the column then the order of those rows and the choices is rearranged when the builder is reopened. The bug appears to be isolated to the form-builder as the asset's content remains correct.
## Steps to Reproduce
1. Create a survey with a `matrix` type question in the form-builder
2. Create some rows and a column with a `select_*` type question that has 6 or more choices (I only seemed to get this behaviour with more than 5)
3. Save and exit the form-builder
4. Re-enter form-builder
### Before saving in form-builder
<img width="1353" alt="Screen Shot 2021-05-21 at 12 14 21 PM" src="https://user-images.githubusercontent.com/50016008/119187741-9a9a5680-ba2e-11eb-9452-8c0221970290.png">
### After saving in form-builder
<img width="1352" alt="Screen Shot 2021-05-21 at 12 14 46 PM" src="https://user-images.githubusercontent.com/50016008/119187761-a259fb00-ba2e-11eb-8492-6b38803c0723.png">
### `asset.content.choices`
```json
[
{
"name": "a",
"$kuid": "tl6uj02",
"label": [
"a"
],
"list_name": "matrix_zl5ns72",
"$autovalue": "a"
},
{
"name": "b",
"$kuid": "ah8st95",
"label": [
"b"
],
"list_name": "matrix_zl5ns72",
"$autovalue": "b"
},
{
"name": "c",
"$kuid": "el8ij96",
"label": [
"c"
],
"list_name": "matrix_zl5ns72",
"$autovalue": "c"
},
{
"name": "d",
"$kuid": "tu7gr17",
"label": [
"d"
],
"list_name": "matrix_zl5ns72",
"$autovalue": "d"
},
{
"name": "option_1",
"$kuid": "zp0ja19",
"label": [
"Option 1"
],
"list_name": "kq2bn83",
"$autovalue": "option_1"
},
{
"name": "option_2",
"$kuid": "he0kt05",
"label": [
"Option 2"
],
"list_name": "kq2bn83",
"$autovalue": "option_2"
},
{
"name": "option_3",
"$kuid": "um6lt39",
"label": [
"Option 3"
],
"list_name": "kq2bn83",
"$autovalue": "option_3"
},
{
"name": "option_4",
"$kuid": "pv71q93",
"label": [
"Option 4"
],
"list_name": "kq2bn83",
"$autovalue": "option_4"
},
{
"name": "option_5",
"$kuid": "nm88a61",
"label": [
"Option 5"
],
"list_name": "kq2bn83",
"$autovalue": "option_5"
},
{
"name": "option_6",
"$kuid": "vx5jj91",
"label": [
"Option 6"
],
"list_name": "kq2bn83",
"$autovalue": "option_6"
}
]
```
## Expected behavior
Matrix question rows and choices remain in the original order.
## Actual behavior
Matrix question rows and choices are shuffled.