Skip to content

Commit

Permalink
#1470: sort folder subtypes alphabetically in requests to ease testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jul 22, 2024
1 parent f5a0f22 commit 7225a8e
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/Folder.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/metadataTypes/Folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ class Folder extends MetadataType {
const newFilter = {
leftOperand: 'ContentType',
operator: contentTypeList.length === 1 ? 'equals' : 'IN',
rightOperand: contentTypeList.length === 1 ? contentTypeList[0] : contentTypeList,
rightOperand:
contentTypeList.length === 1 ? contentTypeList[0] : contentTypeList.sort(),
};
options.filter = options.filter
? {
Expand Down

0 comments on commit 7225a8e

Please sign in to comment.