Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/redis-py
/ SortbyField
Class
SortbyField
redis/commands/search/query.py:379–381 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
377
378
379
class
SortbyField:
380
def
__init__(self, field: str, asc=True) -> None:
381
self.args = [field,
"ASC"
if
asc
else
"DESC"
]
Callers
6
test_hybrid_search_query_with_load_apply_and_sortby
Method · 0.90
test_hybrid_search_query_with_load_and_groupby
Method · 0.90
test_hybrid_search_query_with_multiple_loads_and_applies
Method · 0.90
test_hybrid_search_query_with_load_apply_and_sortby
Method · 0.90
test_hybrid_search_query_with_load_and_groupby
Method · 0.90
sort_by
Method · 0.85
Calls
no outgoing calls
Tested by
5
test_hybrid_search_query_with_load_apply_and_sortby
Method · 0.72
test_hybrid_search_query_with_load_and_groupby
Method · 0.72
test_hybrid_search_query_with_multiple_loads_and_applies
Method · 0.72
test_hybrid_search_query_with_load_apply_and_sortby
Method · 0.72
test_hybrid_search_query_with_load_and_groupby
Method · 0.72