Update inverted_index_reducer.py

Two corrections; note that the list.sort() method returns None.