Sorted task adding