MCPcopy Create free account
hub / github.com/alephdata/aleph / sorts

Method sorts

aleph/search/parser.py:55–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53
54 @property
55 def sorts(self):
56 sort = []
57 for value in self.getlist("sort"):
58 direction = self.SORT_DEFAULT
59 if ":" in value:
60 value, direction = value.rsplit(":", 1)
61 if direction in self.SORTS:
62 sort.append((value, direction))
63 return sort
64
65 @property
66 def items(self):

Callers

nothing calls this directly

Calls 1

getlistMethod · 0.95

Tested by

no test coverage detected