handleSortChange() — supabase Function Reference
Architecture documentation for the handleSortChange() function in AccessToken.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 752b34ae_71ef_d259_90c3_f30c4e31af69["handleSortChange()"] 8b5929c9_64c6_49c4_81bd_271e0e95ead9["AccessTokenList()"] 8b5929c9_64c6_49c4_81bd_271e0e95ead9 -->|calls| 752b34ae_71ef_d259_90c3_f30c4e31af69 add947ae_f0a8_5482_a3d1_722dde833443["ScopedTokenList()"] add947ae_f0a8_5482_a3d1_722dde833443 -->|calls| 752b34ae_71ef_d259_90c3_f30c4e31af69 style 752b34ae_71ef_d259_90c3_f30c4e31af69 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Account/AccessTokens/AccessToken.utils.ts lines 10–28
export const handleSortChange = (
currentSort: AccessTokenSort,
column: AccessTokenSortColumn,
setSort: (sort: AccessTokenSort) => void
) => {
const [currentCol, currentOrder] = currentSort.split(':') as [
AccessTokenSortColumn,
AccessTokenSortOrder,
]
if (currentCol === column) {
if (currentOrder === 'asc') {
setSort(`${column}:desc` as AccessTokenSort)
} else {
setSort('created_at:desc')
}
} else {
setSort(`${column}:asc` as AccessTokenSort)
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handleSortChange() do?
handleSortChange() is a function in the supabase codebase.
What calls handleSortChange()?
handleSortChange() is called by 2 function(s): AccessTokenList, ScopedTokenList.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free