EDTSort fix

Fix for sorting reordered columns