Better test for select/extract with filtered component, fix sortleft to handle aliases correctly.