aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2024-05-15 12:55:40 +0200
committerDaniel <mail@danielkesselberg.de>2024-06-03 12:18:19 +0200
commit0d920c87d479e646d343921b9c140e1127b69212 (patch)
treef78222019be867043928821c824a11a803a86152 /lib/public
parent4be308ab26c4b2b03cad4a332d2343155cb39624 (diff)
downloadnextcloud-server-0d920c87d479e646d343921b9c140e1127b69212.tar.gz
nextcloud-server-0d920c87d479e646d343921b9c140e1127b69212.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/public')
-rw-r--r--lib/public/Calendar/ICalendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Calendar/ICalendar.php b/lib/public/Calendar/ICalendar.php
index c6037690f65..10857a4274d 100644
--- a/lib/public/Calendar/ICalendar.php
+++ b/lib/public/Calendar/ICalendar.php
@@ -65,7 +65,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;