sunsheng 1 год назад
Родитель
Сommit
5c1fec45bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/api/test.go

+ 1 - 1
src/api/test.go

@@ -123,7 +123,7 @@ func TestList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		Page:        page,
 		Size:        size,
 		Query:       query,
-		Sort:        bson.D{bson.E{Key: "createTime", Value: -1}, bson.E{Key: "_id", Value: -1}},
+		Sort:        bson.D{bson.E{Key: "createTime", Value: 1}, bson.E{Key: "_id", Value: 1}},
 	})
 }