priority order halg