public int compare(FileItem leftFileItem, FileItem rightFileItem) { int comparationResult = leftFileItem.getDisplayName().compareTo( rightFileItem.getDisplayName()); return (comparationResult == 0) ? leftFileItem.getIdInternal().compareTo( rightFileItem.getIdInternal()) : comparationResult; }
public int compare(FileItem one, FileItem other) { int comparison = one.getOrderInItem().compareTo(other.getOrderInItem());   if (comparison != 0) { return comparison; } else { return String.valueOf(one.getDisplayName()).compareTo( String.valueOf(other.getDisplayName())); } }
	public int compare(FileItem leftFileItem, FileItem rightFileItem) {	    int comparationResult = leftFileItem.getDisplayName().compareTo(		    rightFileItem.getDisplayName());	    return (comparationResult == 0) ? leftFileItem.getIdInternal().compareTo(		    rightFileItem.getIdInternal()) : comparationResult;	}