There is requirement that we have to reorder the features. We have two type of cases one is general and other is specific. In case of general, you can take the following steps 1- In each line check if fourth column has multiple feature and lcat="v" then 2- parse the features as key lcat_gend_num_pers_cm fs1=v_any_any_any_0 fs2=v_m_sg_any_yA 3- select second feature as first and first as 2nd. input: 1 calA | output: 1 calA | examples: General Case 1 calA |# In case of specific, you can take the following steps Specific Case 1 karake # 2 आने # # feature should be first