Present consistent listfield display order

Avoid sorting array before returning it.

A couple of small code simplifications.

Cast valueformat to string like other variables are cast.