Bug 149783 Display text for extend elelment in master page is not found
Steps to reproduce: 1.New a library, add a properties file for the library, add pair"k1=actuate" to the properties file 2.Add a label "aaa" in master page header, set "k1" as the text key 3.Publish the library 4.New a report, extend lib.masterpage 5.Open extended master page in report Expected result: label shows display text "actuate" Actual result: label shows text "aaa"
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
}
	/**
	 * Sorts a list of element by their internal names.
	 * 
	 * @param elements
	 *            a list of <code>DesignElementHandle</code>
	 * @return a sorted list of element.
	 */
	public static List sortElementsByName( List elements )
	{
		List temp = new ArrayList( elements );
		Collections.sort( temp, new Comparator( ) {
			public int compare( Object o1, Object o2 )
			{
				DesignElementHandle handle1 = (DesignElementHandle) o1;
				DesignElementHandle handle2 = (DesignElementHandle) o2;
				String name1 = handle1.getName( );
				String name2 = handle2.getName( );
				if ( null == name1 )
				{
					if ( null == name2 )
						return 0;
					return -1;
				}
				
				if ( null == name2 )
				{
					return 1;
				}
				return name1.compareTo( name2 );