Sort trade history items (because they are received in a dict and are therefore not necessarily sorted).