Can you keep the order of items that came in JSON
of a API
?
This is how it comes from API
:
{"6":"Abadia","218":"Abel Reis","44":"Alexandre Campos - Jardim","13":"Alfredo Freire I","174":"Alfredo Freire II","186":"Alfredo Freire III","217":"Alfredo Freire IV","189":"Alvorada I, Jardim","190":"Alvorada II, Jardim","55":"Am\u00e9rica - Jardim","80":"Amoroso Costa","254":"Anita, Jardim","137":"Antonia"}
And when I use it in select
for example JSON
is being organized by index
and not texto
, ie,
1: "Center"
2: "Saint Benedict"
3: "Santa Maria"
6: "Abbey"
8: "Great Horizon"
9: "Good View"
10: "Mercês"
11: "Rec. Dos Bandeirantes"