MCPcopy Create free account
hub / github.com/Kong/insomnia / createdFirstSort

Function createdFirstSort

packages/insomnia/src/common/sorting.ts:20–26  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

18};
19
20export const createdFirstSort: SortFunction<{ created: number }> = (a, b) => {
21 if (a.created === b.created) {
22 return 0;
23 }
24
25 return a.created < b.created ? -1 : 1;
26};
27
28export const createdLastSort: SortFunction<{ created: number }> = (a, b) => {
29 if (a.created === b.created) {

Callers 1

sorting.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected