The “strength” of the flush is based on the rank of its highest card. Ace-high flushes are stronger than king-high, and so on.