Added sorting so that platform specific keys will get added first
Use Array.some instead of forEach
Minor cleanup
turn off jasmine-node again
Changed sorting logic base on feedback