[BUGFIX beta] use Object.keys when possible
Merge pull request #4676 from sly7-7/fix-ember-dot-keys

[BUGFIX beta] use Object.keys when possible
[BUGFIX beta] pass context to sortFunction to avoid calling __nextSuper on undefined