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

Method getSort

ui/src/app/Query.js:160–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 getSort() {
161 if (!this.has('sort')) return {};
162 // Currently only supporting sorting by a single field.
163 const valueString = this.getString('sort');
164 const [field, direction] = valueString.split(':');
165 return { field, direction };
166 }
167
168 hasSort() {
169 return this.has('sort');

Callers 5

mapStateToPropsFunction · 0.80
sortColumnMethod · 0.80
EntitySearchResultsClass · 0.80
mapStateToPropsFunction · 0.80
mapStateToPropsFunction · 0.80

Calls 2

hasMethod · 0.95
getStringMethod · 0.95

Tested by

no test coverage detected