package de.cooperateproject.modeling.textual.component.services;

import org.eclipse.emf.ecore.EObject;

import de.cooperateproject.modeling.textual.xtext.runtime.derivedstate.initializer.IDerivedStateComputerSorter;

public class ComponentDerivedStateComputerSorter implements IDerivedStateComputerSorter {

	@Override
	public int compare(EObject o1, EObject o2) {
		return 0;
	}

}

package de.cooperateproject.modeling.textual.component.services;

import org.eclipse.emf.ecore.EObject;

import de.cooperateproject.modeling.textual.component.cmp.Classifier;
import de.cooperateproject.modeling.textual.xtext.runtime.derivedstate.initializer.IDerivedStateComputerSorter;

public class ComponentDerivedStateComputerSorter implements IDerivedStateComputerSorter {

	@Override
	public int compare(EObject o1, EObject o2) {
		int prio1 = o1 instanceof Classifier ? 1 : 0;
        int prio2 = o2 instanceof Classifier ? 1 : 0;
        return prio2 - prio1;
	}

}

resolve Classifiers before other things