1. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform method steps for spatially sorting handwriting data, the handwriting data comprising a set of strokes, each stroke comprising a set of x-y coordinates, the method steps comprising: determining bounding region information for each stroke based on the x-y coordinates of the stroke; clustering the strokes into groups of spatially-related strokes based on the bounding region information; and ordering the clustered groups.