Hi @gato-gordo,
Thanks for the feature request.
For the frontend values, you can use array sorting functions such as asort() to fix this on your template.
http://php.net/manual/en/function.asort.php
This function will sort the array, maintaining the index associations.