From 3b9a9bb5271868d94c2c77c3c9f3077304dc4810 Mon Sep 17 00:00:00 2001
From: Harry Bomrah <harry@rulingcom.com>
Date: Wed, 13 Apr 2016 16:14:29 +0800
Subject: [PATCH] small fix

---
 app/models/patent.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/patent.rb b/app/models/patent.rb
index db7a9a5..0936f4b 100644
--- a/app/models/patent.rb
+++ b/app/models/patent.rb
@@ -34,7 +34,7 @@ class Patent
 
   before_validation :add_http
 
-  scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publish_date => "desc", :application_date => "desc") }
+  scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :application_date => "desc", :publish_date => "desc") }
 
   def get_plugin_data(fields_to_show)
     plugin_datas = []