Yes . It retrieves based on insertion order but it doesnt sort , you can use the TreeMap for that
And the reason for this is because it implements Hashtable and doubly-linked list
Also .values()
method returns a collection view of the values contained in this map . it will be in the same order of map implementation