basic sort for sections