minor
sort same priority by presence