def _process(self, segments):
<EOL>mlh, mlw = self.max_line_height, self.max_line_width<EOL>s = segments.astype(numpy.uint32)  <EOL>order = mlw * (s[:, <NUM_LIT:1>] // mlh) + s[:, <NUM_LIT:0>]<EOL>sort_order = numpy.argsort(order)<EOL>return segments[sort_order]<EOL>
sort segments in read order - left to right, up to down