Reorder iptables rules

I installed the luci-access-control (GitHub - k-szuster/luci-access-control: OpenWrt internet access scheduler) plugin and it works (almost) as intended. But I have one major issue though, the rules are inserted in the wrong order so the reject rules comes after the wildcard accept rule.

How can I fix this the easiest way?
I have tried to copy the line, inserted it further down, and then remove the first accept line, but for some reason the script doesn’t always work.

Please see the attached screenshot