json sorting fail