I would like to sort the content of a CF of type ‘enter multiple values’.
I had a look at the element displaying this but can’t make this work.
Probably my very weak perl skills are the problem.
The following is from that element:
I would like to sort the content of a CF of type ‘enter multiple values’.
I had a look at the element displaying this but can’t make this work.
Probably my very weak perl skills are the problem.
How do you want to sort them, can you do a database sort?
% my $Values = $Object->CustomFieldValues( $CustomField->Id );
You can say $Values->OrderBy(FIELD => ‘Content’, ORDER => ‘ASC’);
If you need to do it in perl, you need to rewrite that loop using
ItemsArrayRef and passing through perl’s sort().
Alternately, you could modify the code that stores, since it stores an
OrderBy field which is what RT normally uses to display.
Keep in mind that changing here will not change the editing view while
ensuring SortOrder is correct will work there.
I would like to sort the content of a CF of type ‘enter multiple values’.
I had a look at the element displaying this but can’t make this work.
Probably my very weak perl skills are the problem.
How do you want to sort them, can you do a database sort?
% my $Values = $Object->CustomFieldValues( $CustomField->Id );