Fixed major error with wrong sections being shown

Fixed major error reported by Robert Girardin where the wrong sections
were being shown. Was reversing then showing first n sections, but
needed to select n sections before the reversing happened.