Added possiblilty to disable sorting via passing 'null' ass sortBy parameter value.

This commit is contained in:
Thorsten Eckel 2015-06-19 17:32:19 +02:00
parent 69ebe8e348
commit 4303b4112d

View file

@ -564,6 +564,7 @@ class App.Model extends Spine.Model
all_complied = @_filterExtended( all_complied, params.filterExtended ) all_complied = @_filterExtended( all_complied, params.filterExtended )
# sort by # sort by
if params.sortBy != null
all_complied = @_sortBy( all_complied, params.sortBy ) all_complied = @_sortBy( all_complied, params.sortBy )
# order # order