From 0c3e911553e376b18d44fcec8c4c3fb99c1a3fa0 Mon Sep 17 00:00:00 2001 From: Wojciech Todryk Date: Mon, 28 May 2012 21:17:24 +0200 Subject: [PATCH] links fix --- app/models/link.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/link.rb b/app/models/link.rb index 290e50f..e390161 100755 --- a/app/models/link.rb +++ b/app/models/link.rb @@ -2,7 +2,7 @@ class Link < ActiveRecord::Base validates_length_of :url, :within => 5..150 validates_length_of :info, :maximum => 50 belongs_to :user - default_scope :order => 'name asc' + default_scope :order => 'url asc' def self.getPageForUser(user,page,sort_field,sort_dir)