Delegate order by Closes #3080.