diff --git a/pkg/infrastructure/dao/task_anomaly.go b/pkg/infrastructure/dao/task_anomaly.go
index 902c7e2..a3f23b4 100644
--- a/pkg/infrastructure/dao/task_anomaly.go
+++ b/pkg/infrastructure/dao/task_anomaly.go
@@ -268,7 +268,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ
 		sqlStr1 += ` and t_task.leader_id in (?) `
 	}
 	condition = append(condition, limit, offset)
-	sqlStr1 += ` order by task.sort_by ,task_anomaly.id desc limit ? offset ? `
+	sqlStr1 += ` order by t_task.task_sort_by ,task_anomaly.id desc limit ? offset ? `
 
 	result := []ListTaskAnomaly{}
 	tx := d.transactionContext.PgTx
@@ -431,7 +431,7 @@ func (d TaskAnomalyDao) SearchForUser(userId int, companyId int, taskName string
 	task_anomaly.created_at
 	from t_task
 	join task_anomaly on t_task.task_id= task_anomaly.task_id
-	where  t_task.task_alias like ?`
+	where t_task.task_alias like ?`
 	condition := []interface{}{userId, userId, companyId, fmt.Sprintf("[%d]", userId)}
 	condition = append(condition, "%"+taskName+"%")
 	result := []ListTaskAnomaly{}