Sorting tasks

The latests commits to fix the task sorting.

* task sorting is now working properly
* new handle image
* unused code has been removed