From 24d7234fecb479f051474e2a97d2725e3801f0e6 Mon Sep 17 00:00:00 2001 From: Wen Date: Wed, 2 Apr 2014 16:04:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E9=A1=BA=E5=BA=8F=E6=8C=89?= =?UTF-8?q?=E7=85=A7=E6=88=AA=E6=AD=A2=E6=97=A5=E6=9C=9F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 534f3f42f..d3481e2ae 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -253,7 +253,7 @@ class ProjectsController < ApplicationController #Added by young def homework @offset, @limit = api_offset_and_limit({:limit => 10}) - @bids = @project.homeworks + @bids = @project.homeworks.order('deadline DESC') @bids = @bids.like(params[:name]) if params[:name].present? @bid_count = @bids.count @bid_pages = Paginator.new @bid_count, @limit, params['page']