I have a table that holds user data in a single row and it looks like this

What I am trying to do is list them in order of their priority so the outcome looks like this
Everything (because its priority is 1)
Something (Because its priority is 2)
Anything (Because its priority is 3)
At present to achieve this I am using else if statement and it is working fine for example
if (Data1_Priority == '1'){
echo Data1
}elseif{
.....
}
I was wondering if it is possible to display the data in order of their priority using some loop rather than if else
I will really appreciate any assistance on how to achieve this.