code: public static Collection<Named> sortByName(Collection<Named> aNamedVOs)
     {
  
        List<Named> list = null;
  
        if (aNamedVOs instanceof List)
  
           list = (List<Named>) aNamedVOs;
  
        else
  
           list = new ArrayList<Named>(aNamedVOs);
  
        Collections.sort(list);
  
        return list;
  
     }
docs: --------------------------------------------------------