From sortedmap to linkedlist