Add sorting keys to generate_options function.