Re: Trying to sort the values of a CF
Joop <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.request-tracker.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11-7-2014 3:29, Kevin Falcone wrote: > On Fri, Jul 04, 2014 at 04:20:19PM +0200, Joop wrote: >> 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'); > https://metacpan.org/pod/DBIx::SearchBuilder#OrderBy-PARAMHASH > Thanks Kevin for the hints. I'll check them out and let the list know. Joop -- RT Training - Boston, September 9-10 http://bestpractical.com/training