3
0

upd(crm): order modules by created time asc

This commit is contained in:
Tit Petric
2018-09-04 11:21:18 +02:00
parent ffa5f9995d
commit d7cac7dbc1

View File

@@ -41,7 +41,7 @@ func (r *module) FindByID(id uint64) (*types.Module, error) {
func (r *module) Find() ([]*types.Module, error) {
mod := make([]*types.Module, 0)
return mod, r.db().Select(&mod, "SELECT * FROM crm_module ORDER BY name ASC")
return mod, r.db().Select(&mod, "SELECT * FROM crm_module ORDER BY id ASC")
}
func (r *module) Create(mod *types.Module) (*types.Module, error) {