From d7ba9508512f4143bcdc806b72ea618c9ab8d35f Mon Sep 17 00:00:00 2001 From: zhangyang Date: Tue, 6 Aug 2013 10:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B7=AF=E7=BA=BF=E5=9B=BE?= =?UTF-8?q?=E5=90=84=E7=89=88=E6=9C=AC=E6=8E=92=E5=88=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/versions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 1f6349934..277f4cfd4 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -40,7 +40,7 @@ class VersionsController < ApplicationController @versions = @project.shared_versions || [] @versions += @project.rolled_up_versions.visible if @with_subprojects #added by young - @versions = @versions.uniq.sort + @versions = @versions.uniq.reverse#Modified by young @offset, @limit = api_offset_and_limit({:limit => 4}) @versions_count = @versions.count @versions_pages = Paginator.new @versions_count, @limit, params['page']