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 (
    697, 935, 940, 999, 1050, 1052, 1048, 
    1049, 1053, 1054, 948, 947, 1115
  ) 
ORDER BY 
  purpose_position ASC, 
  pf.position ASC, 
  pf.feature_id ASC

Query time 0.00076

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "46.83"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "13.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": 13,
            "rows_produced_per_join": 13,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "15.63",
              "eval_cost": "2.60",
              "prefix_cost": "18.23",
              "data_read_per_join": "29K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "prefix",
              "suffix",
              "lang_code",
              "internal_name"
            ],
            "attached_condition": "((`webmarco`.`pfd`.`feature_id` in (697,935,940,999,1050,1052,1048,1049,1053,1054,948,947,1115)) 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": 13,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.00",
              "eval_cost": "2.60",
              "prefix_cost": "33.83",
              "data_read_per_join": "5K"
            },
            "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
947 dropdown 0 group_catalog_item N Amazon-eBay Amazon-eBay 0
1049 dropdown 0 group_catalog_item N Social Media Platform Social Media Platform 0
1052 dropdown 0 group_catalog_item N Google Ads Google Ads 0
1053 dropdown 0 group_catalog_item N Content Content 0
1054 dropdown 0 group_catalog_item N Facebook Ads Facebook Ads 0
697 dropdown 0 group_variation_catalog_item N Special Features Special Features 1
935 dropdown 0 group_variation_catalog_item Y Domain Purchaise Domain Purchaise 1
940 dropdown 0 group_variation_catalog_item N Plan Plan 1
948 dropdown 0 group_variation_catalog_item N Video Length Video Length 1
999 dropdown 0 group_variation_catalog_item N VAT VAT 1
1048 dropdown 0 group_variation_catalog_item N Subscribed to Marco Plans Subscribed to Marco Plans 1
1050 dropdown 0 group_variation_catalog_item N Number of posts Number of posts 1
1115 dropdown 0 group_variation_catalog_item N Email Plan Email Plan 1