order by and first data handler