Fixed sorting method. Deleted bacon and outputs new list.