Update piphisto.py

list sorting