- Added ordering by ID to the deployments query to ensure consistent results. - Removed unnecessary sorting after retrieval to streamline the data handling process.