sendPendingHistories now reports histories in alphabetical order