basic sort for sections, now fixed