Skip to content

Commit

Permalink
Comment that we should improve this
Browse files Browse the repository at this point in the history
  • Loading branch information
ithielnor committed Feb 20, 2024
1 parent 30ffae5 commit 5d46b50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Griddly/Views/Shared/Griddly/Griddly.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@

if (param != null)
{
// TODO: perhaps use hashset for performance or a scrambled equals algo?
// https://stackoverflow.com/a/3670008/65611
// https://stackoverflow.com/a/3670089/65611
return Griddly.Mvc.GriddlyExtensions.GetFormattedValueByType(x.Value)?.OrderBy(y => y).SequenceEqual(Griddly.Mvc.GriddlyExtensions.GetFormattedValueByType(param).OrderBy(y => y)) ?? false;
}

Expand Down

0 comments on commit 5d46b50

Please sign in to comment.