SyntaxFix
Write A Post
Hire A Developer
Questions
Using Orderedset will do the trick. This will keep the remove duplicates from the array and maintain order which sets normally doesn't do
Orderedset