From 78eb1791cdbb6b95f6f1493692a4b14d13d12178 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 30 May 2013 16:12:35 +0200 Subject: [PATCH] SONAR-4301 Sort issues by id desc on selectByIds and selectIssues --- .../org/sonar/core/issue/db/IssueMapper.xml | 2 ++ .../org/sonar/core/issue/db/IssueDaoTest.java | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml index 09c2ab1fb14..463e7f0fd36 100644 --- a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml @@ -144,6 +144,7 @@ and p.id=i.component_id and i.root_component_id=root.id + order by i.id desc