SELECT 
  pf.feature_id, 
  pf.feature_style, 
  pf.position, 
  pf.purpose, 
  pf.display_on_catalog, 
  pfd.description, 
  pfd.internal_name, 
  pfd.prefix, 
  pfd.suffix, 
  (
    CASE WHEN pf.purpose = 'group_catalog_item' THEN 0 ELSE 1 END
  ) AS purpose_position 
FROM 
  cscart_product_features AS pf 
  INNER JOIN cscart_product_features_descriptions AS pfd ON pf.feature_id = pfd.feature_id 
  AND pfd.lang_code = 'en' 
WHERE 
  pf.feature_id IN (976, 860, 548, 1126) 
ORDER BY 
  purpose_position ASC, 
  pf.position ASC, 
  pf.feature_id ASC

Query time 0.00080

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.41"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "4.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "pfd",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "rows_examined_per_scan": 4,
            "rows_produced_per_join": 4,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.82",
              "eval_cost": "0.80",
              "prefix_cost": "5.62",
              "data_read_per_join": "9K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "prefix",
              "suffix",
              "lang_code",
              "internal_name"
            ],
            "attached_condition": "((`webmarco`.`pfd`.`feature_id` in (976,860,548,1126)) and (`webmarco`.`pfd`.`lang_code` = 'en'))"
          }
        },
        {
          "table": {
            "table_name": "pf",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "webmarco.pfd.feature_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 4,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.00",
              "eval_cost": "0.80",
              "prefix_cost": "10.42",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "feature_id",
              "purpose",
              "feature_style",
              "display_on_catalog",
              "position"
            ]
          }
        }
      ]
    }
  }
}

Result

feature_id feature_style position purpose display_on_catalog description internal_name prefix suffix purpose_position
860 dropdown 0 group_variation_catalog_item Y Color 1 Color 1 1
976 dropdown 0 group_variation_catalog_item N Dinu Lmv Srl Dinu Lmv Srl 1
1126 dropdown 0 group_variation_catalog_item N Colors - Seri Procjet Colors - Seri Procjet 1
548 dropdown_labels 20 group_variation_catalog_item Y Size 1 Size 1 1