From 4303b4112d58b4d305ada07f5370e9c25e8d85d8 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 19 Jun 2015 17:32:19 +0200 Subject: [PATCH] Added possiblilty to disable sorting via passing 'null' ass sortBy parameter value. --- app/assets/javascripts/app/models/_application_model.js.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/models/_application_model.js.coffee b/app/assets/javascripts/app/models/_application_model.js.coffee index 22424127a..0ba812d6e 100644 --- a/app/assets/javascripts/app/models/_application_model.js.coffee +++ b/app/assets/javascripts/app/models/_application_model.js.coffee @@ -564,7 +564,8 @@ class App.Model extends Spine.Model all_complied = @_filterExtended( all_complied, params.filterExtended ) # sort by - all_complied = @_sortBy( all_complied, params.sortBy ) + if params.sortBy != null + all_complied = @_sortBy( all_complied, params.sortBy ) # order if params.order