diff --git a/packages/orm/angel_orm/lib/src/query.dart b/packages/orm/angel_orm/lib/src/query.dart index f9d77569..1e4f6e81 100644 --- a/packages/orm/angel_orm/lib/src/query.dart +++ b/packages/orm/angel_orm/lib/src/query.dart @@ -332,7 +332,7 @@ abstract class Query extends QueryBase { } if (_groupBy != null) b.write(' GROUP BY $_groupBy'); var orderByClause = _orderBy.map((order) => order.compile()).join(', '); - if (orderByClause.isNotEmpty == true) { + if (orderByClause.isNotEmpty) { b.write(' ORDER BY $orderByClause'); } if (_limit != null) b.write(' LIMIT $_limit');