remove principal from order by