Toggle the sorting arrows for the first or last item