sortActions() — supabase Function Reference
Architecture documentation for the sortActions() function in Permissions.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD d2b0fec5_5651_577d_ef04_f6a68dee510e["sortActions()"] 6818be90_9692_2163_8616_b25f499b50de["Permissions()"] 6818be90_9692_2163_8616_b25f499b50de -->|calls| d2b0fec5_5651_577d_ef04_f6a68dee510e style d2b0fec5_5651_577d_ef04_f6a68dee510e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/Permissions/Permissions.utils.ts lines 19–34
export const sortActions = (actions: string[]): string[] => {
const sorted: string[] = []
const remaining = [...actions]
const priority = ['read', 'write', 'create', 'delete']
for (const action of priority) {
const index = remaining.indexOf(action)
if (index !== -1) {
sorted.push(action)
remaining.splice(index, 1)
}
}
sorted.push(...remaining)
return sorted
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does sortActions() do?
sortActions() is a function in the supabase codebase.
What calls sortActions()?
sortActions() is called by 1 function(s): Permissions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free