feat: NIP-43
This commit is contained in:
parent
6614a615c4
commit
850d92de28
25 changed files with 1132 additions and 26 deletions
|
|
@ -363,3 +363,8 @@ export function getRetainedEvent(a: Event, b: Event): Event {
|
|||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// Descending sort
|
||||
export function sortEventsDesc(events: Event[]): Event[] {
|
||||
return events.sort((a, b) => compareEvents(b, a))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue