made sort object keys configurable