The lower top card wins
Compare the highest cards first. Only if they tie do you look at the next ones.










Your highest card is a 9.
Their highest card is an 8, lower than your 9, so they win, even though the rest of your cards are lower.










Your highest card is a 9.
Their highest card is an 8, lower than your 9, so they win, even though the rest of your cards are lower.





















