recorrect ticket order
authorjeff <jeff>
Thu, 9 Nov 2006 02:52:40 +0000 (02:52 +0000)
committerjeff <jeff>
Thu, 9 Nov 2006 02:52:40 +0000 (02:52 +0000)
FS/FS/TicketSystem/RT_External.pm

index 234363a..3a0d6f0 100644 (file)
@@ -59,7 +59,7 @@ sub customer_tickets {
           "position(tickets.status in 'newopenstalledresolvedrejecteddeleted')".
          " AS svalue " .
           ( length($priority) ? ", objectcustomfieldvalues.content" : '' ).
-          " $from_sql ORDER BY priority, svalue, id DESC LIMIT $limit";
+          " $from_sql ORDER BY svalue, priority DESC, id DESC LIMIT $limit";
   my $sth = $dbh->prepare($sql) or die $dbh->errstr. "preparing $sql";
   $sth->execute(@param)         or die $sth->errstr. "executing $sql";