Skip to content

Commit

Permalink
Fix sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Jan 18, 2024
1 parent 7c38e72 commit 4e83731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/Classes/002.DatabasePermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class DatabasePermission : IComparable, System.IEquatable[Object]

[System.String] ToString()
{
$concatenatedPermission = $this.Permission -join ', '
$concatenatedPermission = ($this.Permission | Sort-Object) -join ', '

return ('{0}: {1}' -f $this.State, $concatenatedPermission)
}
Expand Down
3 changes: 1 addition & 2 deletions source/Classes/002.ServerPermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class ServerPermission : IComparable, System.IEquatable[Object]
[System.String[]]
$Permission


ServerPermission ()
{
}
Expand Down Expand Up @@ -199,7 +198,7 @@ class ServerPermission : IComparable, System.IEquatable[Object]

[System.String] ToString()
{
$concatenatedPermission = $this.Permission -join ', '
$concatenatedPermission = ($this.Permission | Sort-Object) -join ', '

return ('{0}: {1}' -f $this.State, $concatenatedPermission)
}
Expand Down

0 comments on commit 4e83731

Please sign in to comment.