diff --git a/spring-data-jdbc-plus-support/src/main/java/com/navercorp/spring/data/jdbc/plus/support/convert/SqlGenerator.java b/spring-data-jdbc-plus-support/src/main/java/com/navercorp/spring/data/jdbc/plus/support/convert/SqlGenerator.java index 1d90b32..f7bdaf1 100644 --- a/spring-data-jdbc-plus-support/src/main/java/com/navercorp/spring/data/jdbc/plus/support/convert/SqlGenerator.java +++ b/spring-data-jdbc-plus-support/src/main/java/com/navercorp/spring/data/jdbc/plus/support/convert/SqlGenerator.java @@ -1505,7 +1505,7 @@ private SelectBuilder.SelectOrdered applyQueryOnSelect(Query query, MapSqlParame if (query.isSorted()) { List sort = this.queryMapper.getMappedSort(table, query.getSort(), entity); - selectOrdered = selectBuilder.orderBy(sort); + selectOrdered = selectOrdered.orderBy(sort); } SelectBuilder.SelectLimitOffset limitable = (SelectBuilder.SelectLimitOffset)selectOrdered;