Home / Function/ orderCommandSectionsByPriority() — supabase Function Reference

orderCommandSectionsByPriority() — supabase Function Reference

Architecture documentation for the orderCommandSectionsByPriority() function in ordering.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/App/CommandMenu/ordering.ts lines 17–21

export function orderCommandSectionsByPriority(sections: Array<ICommandSection>) {
  return sections
    .slice()
    .sort((a, b) => (a.meta?.priority ?? DEFAULT_PRIORITY) - (b.meta?.priority ?? DEFAULT_PRIORITY))
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free