It is important to understand that the data stored in ConfiForms is associated with the field type (ConfiForms Field Definition).

And the sorting behaviour is applied according to the ConfiForms Field Definition type. With one exception: for Masked fields - where the user can specify in-out formats and force the field value to be treated as given type