{ "cases": [ { "description": "sort by claim_id", "results": [ { "height": 1, "name": "res", "claim_id": "ccc", "nout": 0, "txid": "fdsafa" }, { "height": 1, "name": "res", "claim_id": "aaa", "nout": 0, "txid": "w5tv8uorgt" }, { "height": 1, "name": "res", "claim_id": "bbb", "nout": 0, "txid": "aecfaewcfa" } ], "expected": [ { "height": 1, "name": "res", "claim_id": "aaa", "nout": 0, "txid": "w5tv8uorgt" }, { "height": 1, "name": "res", "claim_id": "bbb", "nout": 0, "txid": "aecfaewcfa" }, { "height": 1, "name": "res", "claim_id": "ccc", "nout": 0, "txid": "fdsafa" } ] }, { "description": "sort by height", "results": [ { "height": 1, "name": "res", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" }, { "height": 3, "name": "res", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" }, { "height": 2, "name": "res", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" } ], "expected": [ { "claim_id": "ccc", "height": 1, "name": "res", "nout": 0, "txid": "aecfaewcfa" }, { "claim_id": "ccc", "height": 2, "name": "res", "nout": 0, "txid": "aecfaewcfa" }, { "claim_id": "ccc", "height": 3, "name": "res", "nout": 0, "txid": "aecfaewcfa" } ] }, { "description": "sort by name", "results": [ { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" }, { "height": 1, "name": "res3", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" }, { "height": 1, "name": "res2", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" } ], "expected": [ { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" }, { "height": 1, "name": "res2", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" }, { "height": 1, "name": "res3", "claim_id": "ccc", "nout": 0, "txid": "aecfaewcfa" } ] }, { "description": "sort by outpoint", "results": [ { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 2, "txid": "aecfaewcfa" }, { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 1, "txid": "aecfaewcfa" }, { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 3, "txid": "aecfaewcfa" } ], "expected": [ { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 1, "txid": "aecfaewcfa" }, { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 2, "txid": "aecfaewcfa" }, { "height": 1, "name": "res1", "claim_id": "ccc", "nout": 3, "txid": "aecfaewcfa" } ] } ] }