MCPcopy Create free account
hub / github.com/dailydotdev/apps / sortBy

Function sortBy

packages/shared/src/features/posts/postOptionGroups.ts:27–28  ·  view source on GitHub ↗
(ids: string[])

Source from the content-addressed store, hash-verified

25const ownerOrder = ['edit', 'delete', 'analytics', 'boost', 'pin'];
26
27const sortBy = (ids: string[]) => (a: MenuItemProps, b: MenuItemProps) =>
28 ids.indexOf(a.id ?? '') - ids.indexOf(b.id ?? '');
29
30// The phone's post menu: the first level is Share, Why am I seeing this? (on
31// For You only), the follows (source and author, so following is never

Callers 1

groupPostOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected