Commit Graph

4 Commits

Author SHA1 Message Date
Ralf Haferkamp
24897f8b2d ordering: fix the semantics of Less()
This tries to address a semantic glitch in Less() to actually do a "less
than" operation on strings and timestamps.  It does not change the
actual behaviour of the endpoints that support "orderby". The sorted
results will be the same as before.
2022-03-29 11:47:38 +02:00
Ralf Haferkamp
c29842e697 Add sorting to GraphAPI users and groups
The GraphAPI endpoints for users and groups support ordering now.
User can be ordered by displayName, onPremisesSamAccountName and mail.
Groups can be ordered by displayName.

Example: https://localhost:9200/graph/v1.0/groups?$orderby=displayName asc

Closes #3360
2022-03-29 11:47:38 +02:00
Michael Barz
c58fed9e22 fix ordering of names (#3218) 2022-02-22 20:45:44 +01:00
Michael Barz
90a15a8628 add orderby name and lastModifiedDateTime (#3201)
* add orderby name and lastModifiedDateTime

* add unit test for sort

* fix orderby name

* add more tests

* exclude test files from duplication analyzer

* remove flaky test

* order by name if no date is set

* refactor

* add test for wrong parameter name
2022-02-21 15:59:35 +01:00