useful string functions.
sort table by completed tasks