ListMap::insert() will insert a pair with an existing key before existing entries with same key. Should be inserted after.