Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: sort categories in recommended app service response (#4498)

Benjamin46bd53a92960
diff --git a/api/services/recommended_app_service.py b/api/services/recommended_app_service.py
index def39569ea0..6a155922b4f 100644
--- a/api/services/recommended_app_service.py
+++ b/api/services/recommended_app_service.py
@@ -95,7 +95,7 @@ class RecommendedAppService:
categories.add(recommended_app.category) # add category to categories
- return {'recommended_apps': recommended_apps_result, 'categories': list(categories)}
+ return {'recommended_apps': recommended_apps_result, 'categories': sorted(list(categories))}
@classmethod
def _fetch_recommended_apps_from_dify_official(cls, language: str) -> dict: