That’s not a “byte array”, that looks much more like a slice of maps.
Also what exactly do you want to do? Do you want to deduplicate repeated entries or do you want to get rid of duplicated entries globally even if other entries are inbetween?
What have you tried so far to achieve your goal?
Many of us do not want to do your work from scratch, but prefer to work with your code instead and push it into the right direction.
And as you do not have implemented the sort.Interface, sort.Sort doesn’t work, also as you do not have a slice of strings, sort.String doesn’t work. Nothing unexpected so far.
Also sorting alone is not what you want, as sorting will only sort, leaving duplicates where they are, though after sorting you should be able to trivially apply a deduplication algorithm.
But as you can not implement sort.Interface for a slice of maps, you’ll need to create an intermediate datatype first.