Not sure if this is good place to ask, but is there some Unix utility to presort files, based on content, to feed them into tar or zip in correct order so they would compress better by virtue of being similar?<p>I think it would be very useful if tar or zip could do that automatically, and it seems like low-hanging fruit in compression.<p>Actually, thinking about it, the tool could later in more general fashion rearrange the content <i>inside</i> the files. So it would map each file into blocks of similar characteristics that would then be compressed in correct order across files.