Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort cmis result #76

Open
wallon-ines opened this issue Aug 19, 2020 · 1 comment
Open

Sort cmis result #76

wallon-ines opened this issue Aug 19, 2020 · 1 comment

Comments

@wallon-ines
Copy link

Is it to possible to sort cmis result natively in your php libraries ?
eg: I want to sort result by name or CreationDate and if possible show folder first

Best regard

@NamelessCoder
Copy link
Contributor

I would say this depends on the exact use case. If you are pulling all objects without pagination you can always use usort with a custom sorting function to achieve the result you want. If you need to use pagination then you would be limited to whichever sorting functions are provided by the CMIS service you connected - I would expect any such service to support sorting by creation date, but sorting folders on top may not be universally supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants