Added stable sorting of generated modules list according to their paths.