MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / getSortKey

Method getSortKey

js/botasaurus-server-js/src/sorts.ts:180–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178
179class FalsyFirstSort extends BaseSort {
180 protected override getSortKey(): (item: any) => number {
181 return (item: any) => {
182 return Boolean(item[this.field]) ? 1 : 0;
183 };
184 }
185
186 protected getLabel(): string {
187 const titleCasedField = titleCase(this.field);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected