I've the following code:
for i in xrange(len(arr_id)):
list.append({'id': arr_id[i], 'porcentaje' : 0, 'estado' : 'En funcionamiento'})
If I print list
it seems I get a alphabetically ordered list:
[{'estado': 'En funcionamiento', 'id': 0, 'porcentaje': 0}]
Which is not in the same order I define it:
[{'id': 0, 'porcentaje': 0, 'estado': 'En funcionamiento',}]
What can I do to maintain the desired order?