Improved/added default sort by of result of search().

This commit is contained in:
Martin Edenhofer 2014-01-22 15:39:25 +01:00
parent 1eb83620b4
commit 1da1296729

View file

@ -236,15 +236,18 @@ class App.Model extends Spine.Model
item_new = @find( item.id )
all_complied.push @_fillUp(item_new)
# filter search
if params.filter
all_complied = @_filter( all_complied, params.filter )
# use extend filter search
if params.filterExtended
all_complied = @_filterExtended( all_complied, params.filterExtended )
if params.sortBy
# sort by
all_complied = @_sortBy( all_complied, params.sortBy )
# order
if params.order
all_complied = @_order( all_complied, params.order )