diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs index 3f26e51a2..78f469f1a 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs @@ -811,7 +811,7 @@ namespace SqlSugar item.Sql = string.Empty; if (item.Parameters == null) item.Parameters = new SugarParameter[] { }; - var itemParsmeters = item.Parameters.OrderByDescending(it => it.ParameterName).ToList(); + var itemParsmeters = item.Parameters.OrderByDescending(it => it.ParameterName.Length).ToList(); var itemSql = item.Sql; foreach (var itemParameter in itemParsmeters) { diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/DataBase/SqlSugar4xTest.sqlite b/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/DataBase/SqlSugar4xTest.sqlite index 9a0b79020..24804c631 100644 Binary files a/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/DataBase/SqlSugar4xTest.sqlite and b/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/DataBase/SqlSugar4xTest.sqlite differ