This article describes one of the first attempts to use mathematical modeling and optimization in archaeology. William Matthew Flinders Petrie (1853--1942), eminent British archaeologist, excavating a large graveyard at Naqada in Upper Egypt suggested in his article "Sequences in Prehistoric Remains"  to employ a "distance function" to describe the "closeness of graves in time" . Petrie's grave distance is known today as Hamming metric, based on which he proposed to establish the chronology of the graves, i.e., the correct sequence of points in time when the graves were built (briefly called seriation). He achieved this by solving a graph theoretic problem which is called weighted Hamiltonian path problem today and is, of course, equivalent to the symmetric travelling salesman problem. This paper briefly sketches a few aspects of Petrie's biographical background and evaluates the significance of seriation.