[core] index - Fixed issue with headline sort order in export method