sorting task for new and disconnect scenarios