return collections in same order from /api/collections/tree and /api/collections/:id/items (#40044)
There were two problems here: - one endpoint was sorting in the database, but not putting 'analytics' last. - one endpoint was sorting in the database, but then sorting again in clojure, which had subtly different behavior for special characters Fixes #39965
Showing
- enterprise/backend/test/metabase_enterprise/audit_app/api/collection_test.clj 5 additions, 1 deletion...est/metabase_enterprise/audit_app/api/collection_test.clj
- src/metabase/api/collection.clj 48 additions, 40 deletionssrc/metabase/api/collection.clj
- src/metabase/models/collection.clj 7 additions, 3 deletionssrc/metabase/models/collection.clj
- test/metabase/api/collection_test.clj 15 additions, 7 deletionstest/metabase/api/collection_test.clj
- test/metabase/models/collection_test.clj 36 additions, 24 deletionstest/metabase/models/collection_test.clj
Please register or sign in to comment