React Array Sort Python Method Object