From 93f15a49537a47e6a1dead5cec8553b974cd464d Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 3 Sep 2014 22:57:32 +0300 Subject: [PATCH] Explicit order of issues in API. Fixes specs for mysql db Signed-off-by: Dmitriy Zaporozhets --- lib/api/issues.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/issues.rb b/lib/api/issues.rb index 043ce04d321..15a49b452bd 100644 --- a/lib/api/issues.rb +++ b/lib/api/issues.rb @@ -8,7 +8,7 @@ module API case state when 'opened' then issues.opened when 'closed' then issues.closed - else issues + else issues.order('id DESC') end end end