From 255806e86de8321c3887738225bac5e9802bfac3 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 17 Dec 2014 01:06:11 +0100 Subject: todo: remove unnecessary unsorted intermidiate dict --- todo | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'todo') diff --git a/todo b/todo index a803bba..9e64cf2 100755 --- a/todo +++ b/todo @@ -111,9 +111,7 @@ def main(): config = parse_args(arguments) todo_dict = toml.load(config.todo_file) - - unsorted = OrderedDict(sorted(todo_dict.items())) - todo_dict = sort_dict(unsorted, config.sort_key, config.reverse) + todo_dict = sort_dict(todo_dict, config.sort_key, config.reverse) print('todo file: {}'.format(config.todo_file)) for t_id in todo_dict: -- cgit v1.2.3-70-g09d2