Arrays.sort(res, new CorrectionsComparator());
Arrays.sort(res, JavaCompletionProposalComparator.getInstance());
	public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset) {		IEditorPart part= fAssistant.getEditor();				ICompilationUnit cu= JavaUI.getWorkingCopyManager().getWorkingCopy(part.getEditorInput());		IAnnotationModel model= JavaUI.getDocumentProvider().getAnnotationModel(part.getEditorInput());		int length= viewer != null ? viewer.getSelectedRange().y : 0;		AssistContext context= new AssistContext(cu, documentOffset, length);		fErrorMessage= null;		ArrayList proposals= new ArrayList();		if (model != null) {			processAnnotations(context, model, proposals);		}		if (proposals.isEmpty()) {			proposals.add(new ChangeCorrectionProposal(CorrectionMessages.getString("NoCorrectionProposal.description"), null, 0, null));  //$NON-NLS-1$		}				ICompletionProposal[] res= (ICompletionProposal[]) proposals.toArray(new ICompletionProposal[proposals.size()]);		Arrays.sort(res, new CorrectionsComparator());		return res;	}