Blocks are now being displayed in correct order after being pulled from the database.