Do i need to make some changes in TestNg xml after assigning priority to @Test annotation

I am running the script written in java for my iphone application in simulator using appium, i am using @test annotation with priority but when i run my script the only first @Test run & the second one skipped. so do i need to make some changes in TestNG.xml file after assigning priority or is there any other way to run the test.

I just tried the priority attribute. assigned different priorities to 2 of my tests functions (same class). Both were executed in scheduled order. No changes were made to xml file.
Posting your code could help.

Thanks Alexis.
Sorry for the late reply.
I found the solution actually i was using @BeforeClass annotation so it was causing the problem, but when i change the annotation to @BeforeMethod it works.