Fixed major error in showing the wrong sections

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.