Update json2css.js

Fixed sort function