Fixed ordering logic for levels and level structure