Sorted keys when shelve object