state.py: use .sort() instead of sorted() since chunks is a list
Merge pull request #4836 from hulu/sorted-to-sort

state.py: use .sort() instead of sorted() since chunks is a list