Fixed sortBy().
This commit is contained in:
parent
527aebd410
commit
846414f445
1 changed files with 5 additions and 4 deletions
|
@ -258,10 +258,11 @@ class App.Model extends Spine.Model
|
||||||
attribute = 'displayName'
|
attribute = 'displayName'
|
||||||
|
|
||||||
# check if displayName exists
|
# check if displayName exists
|
||||||
if attribute is 'displayName' && item.displayName
|
if attribute is 'displayName'
|
||||||
return item.displayName().toLowerCase()
|
if item.displayName
|
||||||
else
|
return item.displayName().toLowerCase()
|
||||||
attribute = 'name'
|
else
|
||||||
|
attribute = 'name'
|
||||||
|
|
||||||
return '' if item[ attribute ] is undefined
|
return '' if item[ attribute ] is undefined
|
||||||
return '' if item[ attribute ] is null
|
return '' if item[ attribute ] is null
|
||||||
|
|
Loading…
Reference in a new issue