protected int compareEntries ( final Entry e1 , final Entry e2 ) { return new CompareToBuilder ( ) . append ( e1 . getName ( ) , e2 . getName ( ) ) . append ( e1 . getNote ( ) , e2 . getNote ( ) ) . append ( e1 . getCreated ( ) , e2 . getCreated ( ) ) . append ( e1 . getModified ( ) , e2 . getModified ( ) ) . toComparison ( ) ; }
Compairs the entries by name note created and modified properties in that order .