I feel the problem is you often read some panels in the wrong order, but when you read them you realize the order is wrong after the fact, based on the text. The AI could probably use the text as additional information for determining the order.
Would probably never be perfect, but if it gets it right in all but a few outlying cases, that should be good enough.