If you use TaskAgent or Listacular and have lists in Dropbox that have todo items prepended with a hyphen and done items prepended with an x, this script will sort the list so that all completed items are below all incomplete items.

Enter your list: