Add sub.* in select for orderby