Refactoring
Objects
add additional parameter to 'sort' function that will sort properties with primitive type values before proparties with object or array values