diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2024-05-15 12:55:40 +0200 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2024-05-28 19:56:36 +0200 |
commit | b769dc4304862af35946386a235d5e6fdb658ce9 (patch) | |
tree | a04fa7f4cff8117ee0895ada2332c366acd4c9bd /lib | |
parent | 4718a7e4e0c2b738e1076979dbdc08661bd5f305 (diff) | |
download | nextcloud-server-b769dc4304862af35946386a235d5e6fdb658ce9.tar.gz nextcloud-server-b769dc4304862af35946386a235d5e6fdb658ce9.zip |
feat(caldav): order the calendar objects by start date for search
Sorting the events by the start date leads to more predictable results for the search API consumers.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Calendar/ICalendar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Calendar/ICalendar.php b/lib/public/Calendar/ICalendar.php index e4eb7937544..76257579a8f 100644 --- a/lib/public/Calendar/ICalendar.php +++ b/lib/public/Calendar/ICalendar.php @@ -47,7 +47,7 @@ interface ICalendar { * ['timerange' => ['start' => new DateTime(...), 'end' => new DateTime(...)]] * @param int|null $limit - limit number of search results * @param int|null $offset - offset for paging of search results - * @return array an array of events/journals/todos which are arrays of key-value-pairs + * @return array an array of events/journals/todos which are arrays of key-value-pairs. the events are sorted by start date (closest first, furthest last) * @since 13.0.0 */ public function search(string $pattern, array $searchProperties = [], array $options = [], ?int $limit = null, ?int $offset = null): array; |