Add Collections.sort(paths) to getPaths.
Source format.