How is sales tax similar to a flat tax?

How is sales tax similar to a flat tax?