Refactor process tasks
Use sorting by page number for DecreePage