Skip to content

Commit 3158db4

Browse files
authored
Clarify sorting for Collections
See also radiantearth/stac-browser#431
1 parent 064cbe3 commit 3158db4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ See <https://github.com/stac-api-extensions/query> for details.
100100
The sort extension can be implemented, too. It works as it does for Items.
101101
See <https://github.com/stac-api-extensions/sort> for details.
102102

103+
Note that Items and Collections have differences in (common) availability of properties and their location within the document. You can find some examples below:
104+
105+
| Use Case | STAC Collection | STAC Item |
106+
| --------------------- | --------------- | --------- |
107+
| Sort by id | id | id |
108+
| Sort by title | title | properties.title |
109+
| Temporal sorting | extent.temporal | properties.datetime |
110+
| Sort by creation time | created | properties.created |
111+
103112
#### Fields
104113

105114
- Conformance class: `https://api.stacspec.org/v1.0.0-rc.1/collection-search#fields`

0 commit comments

Comments
 (0)