Wrong order at first of rising problem in flock (4,3)

I believe the answer is:
foot rot
'problem in flock' is the definition.
The definition and answer can be both states of affairs as well as being singular nouns.
Perhaps there's a link between them I don't understand?
'wrong order at first of rising' is the wordplay.
'wrong' becomes 'tort' (legal term).
'at first' indicates taking the first letters.
'rising' says the letters should be written backwards (going up in a down clue).
The initial letter of 'order' is 'o'.
'tort'+'o'+'of'='tortoof'
'tortoof' backwards is 'FOOT-ROT'.
Can you help me to learn more?
(Another definition for foot rot that I've seen is " problem with hooves".)
