sort orders, return nearesttask...