optimize sortedKeys function

if there is Object.keys, it's much faster than for loop .
This is a test example:
http://jsperf.com/angular-object-keys-vs-for-loop