[rt-users] Sorting by the value of a custom field in search results *numerically*
Emmanuel Lacour
elacour at easter-eggs.com
Mon May 5 08:21:28 EDT 2014
On Fri, May 02, 2014 at 01:52:06PM -0700, Landon Stewart wrote:
> Hello,
> It seems that the sorting by custom field in search results is always done
> alphabetically.
> For example sorting by CF that contains only integers in descending order:
> 4
> 3
> 2
> 11
> 1
> Is there a way to sort search results by custom field numerically?
>
I use the attached patch for 4.2.3 (not very efficient, but it works).
--
Easter-eggs Spécialiste GNU/Linux
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour at easter-eggs.com - http://www.easter-eggs.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cf-sort.patch
Type: text/x-diff
Size: 1928 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140505/85c8a571/attachment.patch>
More information about the rt-users
mailing list