code: public List<String> sortModules(Collection<CmsModule> modules) {
  
          List<CmsModule> aux = new ArrayList<CmsModule>(modules);
          Collections.sort(aux, new Comparator<CmsModule>() {
  
              public int compare(CmsModule module1, CmsModule module2) {
  
                  return getDisplayForModule(module1).compareTo(getDisplayForModule(module2));
              }
          });
  
          List<String> ret = new ArrayList<String>(aux.size());
          for (Iterator<CmsModule> it = aux.iterator(); it.hasNext();) {
              CmsModule module = it.next();
              ret.add(module.getName());
          }
          return ret;
      }
docs: Sorts the modules for display.<p>
  
  @param modules the list of {@link CmsModule} objects
  
  @return a sorted list of module names