Combined detection and sorting in to one project