/**
 * Created on Jul 24, 2005
 * $id:  $
 */
package org.jvnet.lookout.ui.core.tree.sort.item;

import org.eclipse.jface.viewers.Viewer;
import org.jvnet.lookout.ui.core.tree.SearchResultItem;
import org.jvnet.lookout.ui.core.tree.sort.SearchResultItemSorter;

/**
 * <code>NoSortingSorter</code> does not sort SearchResultItem 
 * instances given. It makes no use of categories to bucket the 
 * SearchResultItem instances.   
 * 
 * <p>
 * @author Cleo Barretto
 *
 */
public class NoSortingSorter implements SearchResultItemSorter {

    public NoSortingSorter() {        
    }
    
    /**
     * Does not sort items within each category.
     * 
     * @see org.jvnet.lookout.ui.core.tree.sort.SearchResultItemSorter#compare(org.eclipse.jface.viewers.Viewer, org.jvnet.lookout.ui.core.tree.SearchResultItem, org.jvnet.lookout.ui.core.tree.SearchResultItem)
     */
    public int compare(Viewer viewer, SearchResultItem item1, SearchResultItem item2) {
        return 0;
    }

    public int category(SearchResultItem item) {
        
        return 0;
    }
}
