Enforce reference block order (Fixes BUGZ-3996)
Begin arcbot message
This merge request is automatically copied from !1328 (merged) orginally made by @dcameron
End arcbot message
Begin arcbot message
This merge request is automatically copied from !1328 (merged) orginally made by @dcameron
End arcbot message