sortJsonArrayByProperty now handles items without sort field