From 63b7c53d7f242a837a82c08ce974676ad2a5d799 Mon Sep 17 00:00:00 2001 From: debuggerx01 Date: Tue, 11 Jan 2022 17:53:14 +0800 Subject: [PATCH] fix multi order by error --- packages/orm/angel_orm/lib/src/query.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/orm/angel_orm/lib/src/query.dart b/packages/orm/angel_orm/lib/src/query.dart index 9e4d72fa..cff833c4 100644 --- a/packages/orm/angel_orm/lib/src/query.dart +++ b/packages/orm/angel_orm/lib/src/query.dart @@ -331,7 +331,7 @@ abstract class Query extends QueryBase { b.write(' WHERE $whereClause'); } if (_groupBy != null) b.write(' GROUP BY $_groupBy'); - var orderByClause = _orderBy.map(item.compile()).join(', '); + var orderByClause = _orderBy.map((order) => order.compile()).join(', '); if (orderByClause?.isNotEmpty == true) { b.write(' ORDER BY $orderByClause'); }