does white sugar have a shelf life?
Various references, including this one from Lantic sugar note the shelf-life of granulated white sugar as indefinite or effectively forever.

Presuming, likely, that it is stored as you note in a sealed container.