Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: added orderBy field to query to fetch childCollectionList

Balu Babu7668be50ae00
diff --git a/packages/hoppscotch-backend/src/user-collection/user-collection.service.ts b/packages/hoppscotch-backend/src/user-collection/user-collection.service.ts
index 827dd0d05..3ee6fb026 100644
--- a/packages/hoppscotch-backend/src/user-collection/user-collection.service.ts
+++ b/packages/hoppscotch-backend/src/user-collection/user-collection.service.ts
@@ -869,6 +869,9 @@ export class UserCollectionService {
parentID: collectionID,
type: reqType,
},
+ orderBy: {
+ orderIndex: 'asc',
+ },
});
// Create a list of child collection and request data ready for export