/******************************************************************************* * Copyright (c) 2007-2009, G. Weirich and Elexis * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * G. Weirich - initial implementation * *******************************************************************************/ package ch.elexis.notes; import java.util.Comparator; /** * The NoteComparator sorts Notes with a case insensitive comparison of the Label * * @author gerry * */ public class NoteComparator implements Comparator<Note> { public int compare(Note arg0, Note arg1){ return arg0.getLabel().compareToIgnoreCase(arg1.getLabel()); } }