Skip to content

Commit

Permalink
devop: fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
olgakup committed Dec 26, 2024
1 parent cb72c50 commit 04b683a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const updateSort = (sort: NetworkSort) => {
const sortNetworks = (networks: BaseNetwork[], sortBy: NetworkSort) => {
return networks.sort((a, b) => {
if (sortBy.name === NetworkSortOption.Name) {
return sortBy.direction
return sortBy.direction === NetworkSortDirection.Asc
? a.name.localeCompare(b.name)
: b.name.localeCompare(a.name);
}
Expand All @@ -184,6 +184,7 @@ const searchNetworks = computed({
}
return props.networks;
}
//Search Networks
const beginsWithName: BaseNetwork[] = [];
const beginsWithSpaceName: BaseNetwork[] = [];
const includesName: BaseNetwork[] = [];
Expand Down

0 comments on commit 04b683a

Please sign in to comment.