Partial implementation of sort

Currently works for task names.