Sort blocks by Y coords