What the example proves
With five spades, compare the highest card first, then the next until a difference appears. A♠ J♠ 8♠ 6♠ 3♠ beats K♥ Q♥ J♥ 9♥ 7♥ because the ace beats the king. The suit itself has no rank. A full house still beats either flush.