Allowed for options, not sure if needed for nested

This pull request allows for options to be set.

One issue I ran into was that my array was a property of a larger object, I wanted to be able to sort it without renaming the property. I'm not positive that this is the best solution, I'm open to changing anything.