diff --git a/src/lib/features/feature-search/feature-search-store.ts b/src/lib/features/feature-search/feature-search-store.ts index 5ba2361a33..edb5aa5e55 100644 --- a/src/lib/features/feature-search/feature-search-store.ts +++ b/src/lib/features/feature-search/feature-search-store.ts @@ -288,7 +288,8 @@ class FeatureSearchStore implements IFeatureSearchStore { ); }) .joinRaw('CROSS JOIN total_features') - .whereBetween('final_rank', [offset + 1, offset + limit]); + .whereBetween('final_rank', [offset + 1, offset + limit]) + .orderBy('final_rank'); const rows = await finalQuery; stopTimer(); if (rows.length > 0) {