Sort blocks