Project

General

Profile

« Previous | Next » 

Revision 68024392

Added by Patrick Plitzner over 5 years ago

ref #7674 Adjust order of matrix rows

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/MatrixRowComparator.java
42 42

  
43 43
    @Override
44 44
    public int compare(Object o1, Object o2) {
45
        if(o1 instanceof TaxonNode){
46
            if(o2 instanceof RowWrapperDTO){
47
                return 1;
48
            }
49
        }
50
        else{
51
            if(o2 instanceof TaxonNode){
52
                return -1;
53
            }
54
        }
45 55
        if(o1 instanceof TaxonNode && o2 instanceof TaxonNode){
46 56
            return comparator.compare((TaxonNode)o1, (TaxonNode)o2);
47 57
        }

Also available in: Unified diff