diff --git a/frontend/src/common/config.js b/frontend/src/common/config.js index b890c9d18..b87e36c65 100644 --- a/frontend/src/common/config.js +++ b/frontend/src/common/config.js @@ -148,7 +148,7 @@ export default class Config { switch (type) { case "created": - this.values.people.push(...data.entities); + this.values.people.unshift(...data.entities); break; case "updated": for (let i = 0; i < data.entities.length; i++) { diff --git a/internal/query/subjects.go b/internal/query/subjects.go index 8c736a944..ad7de1b17 100644 --- a/internal/query/subjects.go +++ b/internal/query/subjects.go @@ -16,7 +16,7 @@ func People() (people entity.People, err error) { Table(entity.Subject{}.TableName()). Select("subject_uid, subject_name, subject_alias, favorite"). Where("deleted_at IS NULL AND subject_type = ?", entity.SubjectPerson). - Order("subject_name"). + Order("file_count DESC"). Limit(2000).Offset(0). Scan(&people).Error