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

Method sortBy

ui/src/app/Query.js:172–177  ·  view source on GitHub ↗
(name, direction)

Source from the content-addressed store, hash-verified

170 }
171
172 sortBy(name, direction) {
173 if (!name || !direction) {
174 return this.clear('sort');
175 }
176 return this.set('sort', `${name}:${direction}`);
177 }
178
179 defaultSortBy(name, direction) {
180 if (!this.hasSort()) {

Callers 11

defaultSortByMethod · 0.95
entitySuggestQueryFunction · 0.80
onSortColumnMethod · 0.80
sortColumnMethod · 0.80
renderMethod · 0.80
mapStateToPropsFunction · 0.80
toggleSortMethod · 0.80
onSortMethod · 0.80
mapStateToPropsFunction · 0.80
mapStateToPropsFunction · 0.80

Calls 2

clearMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected