Fix flows priority sort order