A possible harmonization:
Judas led the crowd to the garden, then approached Jesus by himself, saying, "Greetings, Rabbi!"
As he drew near to kiss Jesus, Jesus asked, "Judas, are you betraying the Son of Man with a kiss?" Judas kissed him anyway, and Jesus responded, "Friend, do what you came for."
Jesus then approached the crowd and asked them, "Who is it you want?" The interaction described in John followed. The men then arrested Jesus.
The disciples asked if they should strike with swords, and Peter went ahead and cut off the ear of the
high priest's servant. Jesus healed the servant, rebuked Peter, and again addressed the crowd,
asking them why they didn't arrest him earlier.