Fixes #315; Sort blocks by orderValue