add configurable filter ordering fix to legacy-mod impl