saving tasks positions after sorting