Fix issue with lists longer than 10 elements
Fix issue with lists longer than 10 elements

`as_list_method` had trouble in handling list with more than 10 elements, due to wrong key being using in sorting.
gmr/flatdict,gmr/flatdict