You should avoid using the ``SORT`` statement because it is inefficient. Use external tools to sort large numbers of records instead.