Bug 4978 Completion list not ordered as expected
Type "fo" and press ctrl-space The best matches are the "for" templates but they are at the end of the list
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
}
	/**
	 * Inspects the context of the compilation unit around <code>completionPosition</code>
	 * and feeds the collector with proposals.
	 * @param collector          the collector for template proposals.
	 * @param sourceUnit         the compilation unit.
	 * @param completionPosition the context position in the compilation unit.
	 */
	public void complete(ICompilationUnit sourceUnit, int completionPosition)
		throws JavaModelException
	{
		String source= sourceUnit.getSource();
		
		int end = completionPosition;
		int start= guessStart(source, end, fPartitionType);
				
		
		String request= source.substring(start, end);
		int index= request.indexOf(ARGUMENTS_BEGIN);
		String key;
		String[] arguments;
		if (index == -1) {
			key= request;
			arguments= null;
		} else {
			key= request.substring(0, index);
			
			String allArguments= request.substring(index + 1, request.length() - 1);			
			List list= new ArrayList();
			StringTokenizer tokenizer= new StringTokenizer(allArguments, ",");