MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / sortNotes

Function sortNotes

integrations/raycast/src/search-notes.tsx:402–408  ·  view source on GitHub ↗
(notes: ZenNote[])

Source from the content-addressed store, hash-verified

400}
401
402function sortNotes(notes: ZenNote[]): ZenNote[] {
403 return [...notes].sort(
404 (a, b) =>
405 b.updatedAt - a.updatedAt ||
406 a.title.localeCompare(b.title, undefined, { sensitivity: "base" }),
407 );
408}
409
410function noteAccessories(note: ZenNote): List.Item.Accessory[] {
411 const accessories: List.Item.Accessory[] = [

Callers 1

SearchNotesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected