order by collectino title

This commit is contained in:
Espen Antonsen 2009-11-09 13:55:15 +01:00
parent 3e39940dfd
commit 225d68138e

View file

@ -3,7 +3,7 @@ class CollectionsController < ApplicationController
before_filter :require_role_admin, :only => [:new, :create, :edit, :update, :destroy]
def index
@collections = Collection.find(:all)
@collections = Collection.find(:all, :order => 'title')
respond_to do |format|
format.html
format.json { render :json => @collections }