Fix dump's implementation of sort_keys 

Fix for #106