Fix to preserve order when removing dupes in shred module.