Update piphisto.py

app histo list is now sorted by installations and names