def METHOD_NAME():
    """Tests for an issue where data returned to the web interface was in a different order to the initial table,
    causing results to be displayed out of order"""
    assert (tangos.get_item("sim/ts4").calculate_all("halo_number()") == np.array([10,2,3])).all()
    assert (tangos.get_item("sim/ts4").calculate_all("halo_number()",order_by_halo_number=True) == np.array([2,3,10])).all()
    response = app.get("/sim/ts4/gather/halo/test_value.json")
    assert response.content_type == 'application/json'
    assert response.status_int == 200
    result = json.loads(response.body.decode('utf-8'))
    assert result['timestep'] == 'ts4'
    assert result['data_formatted'] == ["2.00", "3.00", "1.00"]