package com.interpress_project.modernshare.client.view.localfs;

import org.eclipse.jface.viewers.ViewerSorter;

import com.interpress_project.modernshare.client.controller.model.IFileItem;

public class FileSorter extends ViewerSorter {
	/**
	 * category
	 *
	 * @param element Object
	 * @return int
	 */
	public int category(Object element) {
		return ((IFileItem) element).isDirectory() ? 0 : 1;
	}
}
