question: private ArrayList < Segment10 > tableSegments ( TableEntry10 table ) { ArrayList < Segment10 > tableSegments = new ArrayList < > ( ) ; for ( Segment10 segment : _segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { tableSegments . add ( segment ) ; } } Collections . sort ( tableSegments , null ) ; return tableSegments ; }
target:  Returns segments for a table in reverse sequence order. The reverse order minimizes extra pages reads, because older pages don't need to be read.