Lots of small fixes

1) Sort was broken.  Now it isn't.
2) Added code to fill in the task detail field based on the sort.
3) Fixed the task details.  You can now rename a task.
4) Fixed a big bug with empty lists getting lost.