Sort history results by shortest url