Skip to content

Commit

Permalink
fix: Daemonset sort by name and namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tiithansen committed Jun 11, 2024
1 parent 06f5b00 commit 6070f80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/Workloads/tabs/DaemonSets/DaemonSets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ const columns: Array<Column<TableRow>> = [
enabled: true,
type: 'label',
local: true,
compare(a, b, direction) {
return direction === 'asc' ? a.daemonset.localeCompare(b.daemonset) : b.daemonset.localeCompare(a.daemonset)
},
}
},
{
Expand All @@ -66,6 +69,9 @@ const columns: Array<Column<TableRow>> = [
enabled: true,
type: 'label',
local: true,
compare(a, b, direction) {
return direction === 'asc' ? a.namespace.localeCompare(b.namespace) : b.namespace.localeCompare(a.namespace)
},
}
},
{
Expand Down

0 comments on commit 6070f80

Please sign in to comment.