Insert sort_flags SORT_NUMERIC in both events