diff --git a/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java b/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java index 2a2545a..f3c252f 100644 --- a/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java +++ b/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java @@ -127,7 +127,7 @@ public List findFloatingPopulationTransition(String code) { .innerJoin(population.town, town).fetchJoin() .where(population.populationType.eq(PopulationType.FloatingPopulation) .and(town.quarter.in(20241, 20234, 20233, 20232, 20231))) - .orderBy(population.town.quarter.desc(), population.totalPopulation.desc()) + .orderBy(population.town.quarter.asc(), population.totalPopulation.desc()) .fetch(); } diff --git a/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java b/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java index 15ec0e7..541bf3a 100644 --- a/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java +++ b/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java @@ -101,7 +101,7 @@ public List findSalesForTransitionData() { town.quarter.in(20241L, 20234L, 20233L, 20232L, 20231L) ) .groupBy(town.name, town.quarter, town.code) - .orderBy(town.quarter.desc(), sales.currentMonthlySales.sum().desc()) + .orderBy(town.quarter.asc(), sales.currentMonthlySales.sum().desc()) .fetch(); } @@ -293,7 +293,7 @@ public List findSalesByIndustryForTransitionData(String industry.name.eq(industryName), town.quarter.in(20241L, 20234L, 20233L, 20232L, 20231L) ) - .orderBy(town.quarter.desc(), sales.currentMonthlySales.desc()) + .orderBy(town.quarter.asc(), sales.currentMonthlySales.desc()) .fetch();