code: function sortReflections(modules) {
                      modules.sort(function (a, b) {
                          if (a.flags.isExternal && !b.flags.isExternal)
                              return 1;
                          if (!a.flags.isExternal && b.flags.isExternal)
                              return -1;
                          return a.getFullName() < b.getFullName() ? -1 : 1;
                      });
                  }
docs: Sort the given list of modules by name, groups external modules at the bottom.
  
  @param modules  The list of modules that should be sorted.