Fix sort order for Sql storage
authorVincent Tondellier <tonton+hg@team1664.org>
Mon, 04 Aug 2014 15:45:02 +0200
changeset 33 da690d68c1ff
parent 32 3e776f1b21d4
child 34 e0d6597078a5
Fix sort order for Sql storage
lib/CrashTest/Storage/Sql.pm
--- a/lib/CrashTest/Storage/Sql.pm	Mon Aug 04 14:52:24 2014 +0200
+++ b/lib/CrashTest/Storage/Sql.pm	Mon Aug 04 15:45:02 2014 +0200
@@ -34,7 +34,7 @@
         undef,
         {
             prefetch    => [ 'product', 'crash_user' ],
-            order_by    => 'crash_time',
+            order_by    => { -desc => 'crash_time' },
             page        => $page,
             rows        => $nperpage,
         },