adapter: fixed order by if empty