While most historians and biblical scholars believe a historical Jesus existed and was crucified, many are also aware that the gospel narratives are told from very different perspectives, with significant idiosyncrasies.
There are many examples where the gospel stories diverge and contain discrepancies, and while this doesn’t mean the original events didn’t happen, it makes claims like “every word in the Bible is historically true” a bit misguided.
This picture shows yet another instantiation of these differences. What likely happened is that that the author of Luke, writing much later than Mark, was trying to defuse the image of early Christians being involved in a violent uprising, and this story in Marks gospel seems to show a violent incident that is neither corrected nor rejected by Jesus. Thus Luke alters this narrative by saying Jesus healed the dismembered ear and commanded the violence to stop, but in order to incorporate these two elements, Luke had to change the order of Marks account.