Sort files before building a pack.

This really needs to be more deterministic.