This means we have to do selection + "Format Includes" twice, if we want to sort (and remove duplicates) across all groups of includes in the selection.
Currently, each group is individually sorted (and pruned from duplicates) since the sorting is done before removing the empty lines between groups. Doing the line removal before sorting would fix this issue and make the behavior more like what could be expected when the settings indicate "remove empty lines, sort and remove duplicates".
This means we have to do selection + "Format Includes" twice, if we want to sort (and remove duplicates) across all groups of includes in the selection.
Currently, each group is individually sorted (and pruned from duplicates) since the sorting is done before removing the empty lines between groups. Doing the line removal before sorting would fix this issue and make the behavior more like what could be expected when the settings indicate "remove empty lines, sort and remove duplicates".