issue 4832: add order by item condition