When giving mining (or sweeping) orders if priority is change from 5 to 7, (7 is an exemple), it will be back to 5 the next time.
However, building and other tasks will remember the last priority set up (= normal behavior).
Detailled description here :
Order mining. Set priority to more than the default 5. Do other tasks. Come back to ming order : priority is 5.