Fix a bug on select_field sorting.

select_field component sorting was not working properly.
Additionally, add a default sorting to select_field.