compareTo method
Compares this object to another object.
Returns a value like a Comparator when comparing this
to other
.
That is, it returns a negative integer if this
is ordered before other
,
a positive integer if this
is ordered after other
,
and zero if this
and other
are ordered together.
The other
argument must be a value that is comparable to this object.
Implementation
dc.int compareTo(lcoc_core.Keyword y$1, ){
final dc.String? nsy$1=y$1.ns;
if((lcoc_core.$EQ_.$_invoke$2(this, y$1, ))){
return 0;
}
final dc.bool and$7468_$AUTO_$3=(null==ns);
late final dc.Object? $if_$1;
if(and$7468_$AUTO_$3){
$if_$1=nsy$1;
}else{
$if_$1=and$7468_$AUTO_$3;
}
if((($if_$1!=false)&&($if_$1!=null))){
return -1;
}
if((ns!=null)){
if((null==nsy$1)){
return 1;
}
final dc.int nsc$1=((ns as dc.String).compareTo((nsy$1 as dc.String), ));
if((0==nsc$1)){
return (name.compareTo(y$1.name, ));
}
return nsc$1;
}
return (name.compareTo(y$1.name, ));
}