c_platform: add function for sorting ignored headers