..F....... [ZBX-8245] cleaned up make_sorting_header code and calls as requested in (6)