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

Function createdLastSort

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

Source from the content-addressed store, hash-verified

26};
27
28export const createdLastSort: SortFunction<{ created: number }> = (a, b) => {
29 if (a.created === b.created) {
30 return 0;
31 }
32
33 return a.created > b.created ? -1 : 1;
34};
35
36export const descendingModifiedSort: SortFunction<{ lastModifiedTimestamp: number }> = (a, b) => {
37 if (a.lastModifiedTimestamp === b.lastModifiedTimestamp) {

Callers 1

sorting.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected