Moving a rule in ssh is easy. Just move the rule number to the destination number –
/ip firewall filter move 7 destination=4
This would move rule number 7 to position 4, moving 4 lower down the chain. Sometimes helpful when you, like me, accidentally created a rule for winbox 8291 as port 8192!