mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
Fixed members list sorting
no issue
This commit is contained in:
parent
38e36104b8
commit
7313b9145f
@ -29,6 +29,8 @@ export default Controller.extend({
|
||||
let {name, email} = member;
|
||||
return (name && name.toLowerCase().indexOf(searchText) >= 0)
|
||||
|| (email && email.toLowerCase().indexOf(searchText) >= 0);
|
||||
}).sort((a, b) => {
|
||||
return b.get('createdAt').valueOf() - a.get('createdAt').valueOf();
|
||||
});
|
||||
|
||||
return filtered;
|
||||
|
Loading…
Reference in New Issue
Block a user