Improved/added default sort by of result of search().
This commit is contained in:
parent
1eb83620b4
commit
1da1296729
1 changed files with 5 additions and 2 deletions
|
@ -236,15 +236,18 @@ class App.Model extends Spine.Model
|
||||||
item_new = @find( item.id )
|
item_new = @find( item.id )
|
||||||
all_complied.push @_fillUp(item_new)
|
all_complied.push @_fillUp(item_new)
|
||||||
|
|
||||||
|
# filter search
|
||||||
if params.filter
|
if params.filter
|
||||||
all_complied = @_filter( all_complied, params.filter )
|
all_complied = @_filter( all_complied, params.filter )
|
||||||
|
|
||||||
|
# use extend filter search
|
||||||
if params.filterExtended
|
if params.filterExtended
|
||||||
all_complied = @_filterExtended( all_complied, params.filterExtended )
|
all_complied = @_filterExtended( all_complied, params.filterExtended )
|
||||||
|
|
||||||
if params.sortBy
|
# sort by
|
||||||
all_complied = @_sortBy( all_complied, params.sortBy )
|
all_complied = @_sortBy( all_complied, params.sortBy )
|
||||||
|
|
||||||
|
# order
|
||||||
if params.order
|
if params.order
|
||||||
all_complied = @_order( all_complied, params.order )
|
all_complied = @_order( all_complied, params.order )
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue