fixes bug #9386
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@74509 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a618ef7efd
commit
3b8ed36ff1
|
@ -259,9 +259,11 @@ public class FiscalRdi implements Comparable<FiscalRdi> {
|
|||
public int compareTo(FiscalRdi o) {
|
||||
int result = this.estado.compareToIgnoreCase(o.estado);
|
||||
if (result == 0) {
|
||||
return this.tipoViagem.compareToIgnoreCase(o.tipoViagem);
|
||||
} else {
|
||||
result = this.tipoViagem.compareToIgnoreCase(o.tipoViagem);
|
||||
}
|
||||
if (result == 0) {
|
||||
return o.tipoReceita.compareToIgnoreCase(this.tipoReceita);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue