Try sorting by date first, if the dates are in no order then when you are inserting priority2 (I am assuming you are entering in one cell and scrolling down) it overwrites the hidden rows. Why not use an IF statement?
Insert a new column, then in it enter =IF(a1="Feb","Priority1!,if(a1="Mar","priority2",""))
Adjust the formula to your cell reference and text values