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!