Add test for sort with a column not appear in attributes