added sort for incomplete and all