Modified select for order by an IN expressions.