Return files sorted by name

This makes tests less flaky.