prepare_packed_git(): sort packs by age and localness.