In the auto UDMs, for the list and browse UDMs all the columns will return values which are sorted on the basis of the contents of the first column. In cases where the first column is a foreign reference key (for e.g. "Id", which may be a foreign key), the sorting will not follow this rule. The default sorting mechanism followed in such cases is sorting by the column which you select.