Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3590

Sort by date

$
0
0

hi! Check how to do sorting in our documentation:

for instance:

from weaviate.classes.query import Sort

response = questions.query.fetch_objects(
        # Note: To sort by multiple properties, chain the relevant `by_xxx` methods.
        sort=Sort.by_property(name="points", ascending=False).by_property(name="answer", ascending=True),
        limit=3
    )

Let me know if this helps.

Thanks!


Viewing all articles
Browse latest Browse all 3590

Trending Articles