SelectionSort: don't sort the last cell, it's already done (fix #365)