added task sorting by completion