|  | @ -12,6 +12,7 @@ import ( | 
		
	
		
			
				|  |  | 	"link_homework/internal/model/do" |  |  | 	"link_homework/internal/model/do" | 
		
	
		
			
				|  |  | 	"link_homework/internal/model/entity" |  |  | 	"link_homework/internal/model/entity" | 
		
	
		
			
				|  |  | 	"link_homework/internal/service" |  |  | 	"link_homework/internal/service" | 
		
	
		
			
				|  |  |  |  |  | 	"sort" | 
		
	
		
			
				|  |  | ) |  |  | ) | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | type ( |  |  | type ( | 
		
	
	
		
			
				|  | @ -69,6 +70,12 @@ func UpdateHomework(ctx context.Context, homeworkList []*entity.ActivityInteract | 
		
	
		
			
				|  |  | 			} |  |  | 			} | 
		
	
		
			
				|  |  | 		} |  |  | 		} | 
		
	
		
			
				|  |  | 	} |  |  | 	} | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | 	// 对 homeworkList 按 Status 升序排序
 | 
		
	
		
			
				|  |  |  |  |  | 	sort.Slice(homeworkList, func(i, j int) bool { | 
		
	
		
			
				|  |  |  |  |  | 		return homeworkList[i].Status < homeworkList[j].Status | 
		
	
		
			
				|  |  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  | 	return homeworkList |  |  | 	return homeworkList | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
	
		
			
				|  | 
 |