sort the positions prior to displaying them