The Complexity of Datalog on Linear Orders (Logical Methods in Computer Science, 2009)