Implemented saving tasks sorting