Original: It was sold to Sweden in 1784, which sold it back to France in 1878.
Simplified: It was sold to Sweden in 1785. Sweden sold it back to France in 1878.