When the data you insert is integer or string, it is considered as key by itself and data is sorted based on value. But no such ordering can be defined on complex data type like List or Map. So if you want to store a list or map. What you pass into llist.add is map with reserved ‘key’:keyValue.