Export fields in alphabetic order

Hi, I think it would be a good idea to have the fields in alphabetical order, lists in admin>export products when choosing to export it will save time when choosing what fields to export if you have lots of fields.

is this possible

app/controllers/backend/exim.php

try to replace

Tygh::$app['view']->assign('pattern', $patterns[$pattern_id]);

with

$pattern = $patterns[$pattern_id];
ksort($pattern['export_fields'])
Tygh::$app['view']->assign('pattern', $pattern);

(!) Not tested

hmm, thanks. but no no not really, http500 after clearing cache etc.

there are 2 lines of Tygh::$app['view']->assign('pattern', $patterns[$pattern_id]);
one is line 330 and one is line 331 I tried both but still same error 500

I am using v 4.17.2 though

sorry wrong post here by me