feat: sorting for all entities

This commit is contained in:
2025-03-12 16:24:28 +07:00
parent 8cf6d7ed73
commit 7e140bd2ce
4 changed files with 11 additions and 10 deletions

View File

@@ -91,3 +91,6 @@ func (service *PostTypeService) ImportFromExcel() error {
}
return nil
}
func (service *PostTypeService) SortedByOrder(fieldsSortOrder map[string]string) ([]*PostType, error) {
return utils.SortByOrder(fieldsSortOrder, PostType{})
}