TODO cleanup
Sort items in pending and completed list