prioritize_level function

Arrange unique level values in default order of priority