Skip to content

The open alternative to Salesforce, designed for AI.

155 B
Raw Blame
export const sortTabsByPosition = <T extends { position: number }>(
  tabs: T[],
): T[] => {
  return tabs.toSorted((a, b) => a.position - b.position);
};