feat: sorting for all entities
This commit is contained in:
@@ -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{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user