added new option to sort keys in objects