{"action":"opened","issue":{"url":"https://api.github.com/repos/tendermint/tendermint/issues/2775","repository_url":"https://api.github.com/repos/tendermint/tendermint","labels_url":"https://api.github.com/repos/tendermint/tendermint/issues/2775/labels{/name}","comments_url":"https://api.github.com/repos/tendermint/tendermint/issues/2775/comments","events_url":"https://api.github.com/repos/tendermint/tendermint/issues/2775/events","html_url":"https://github.com/tendermint/tendermint/issues/2775","id":378401000,"node_id":"MDU6SXNzdWUzNzg0MDEwMDA=","number":2775,"title":"Search order sometimes incorrect for Txs that occur on the same block","user":{"login":"fumecow","id":27297969,"node_id":"MDQ6VXNlcjI3Mjk3OTY5","avatar_url":"https://avatars0.githubusercontent.com/u/27297969?v=4","gravatar_id":"","url":"https://api.github.com/users/fumecow","html_url":"https://github.com/fumecow","followers_url":"https://api.github.com/users/fumecow/followers","following_url":"https://api.github.com/users/fumecow/following{/other_user}","gists_url":"https://api.github.com/users/fumecow/gists{/gist_id}","starred_url":"https://api.github.com/users/fumecow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fumecow/subscriptions","organizations_url":"https://api.github.com/users/fumecow/orgs","repos_url":"https://api.github.com/users/fumecow/repos","events_url":"https://api.github.com/users/fumecow/events{/privacy}","received_events_url":"https://api.github.com/users/fumecow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-07T17:52:58Z","updated_at":"2018-11-07T17:52:58Z","closed_at":null,"author_association":"NONE","body":"**Tendermint version** (use `tendermint version` or `git rev-parse --verify HEAD` if installed from source):\r\n0.25.0-0c9c3292\r\n\r\n**Environment**: LotionJS\r\n- **OS** (e.g. from /etc/os-release): Linux\r\n- **Install tools**: npm\r\n\r\n**What happened**:\r\nABCI tx_search results do not always return Txs in the order they were executed in the case where multiple Txs are added to the same block with the same search tag.\r\n\r\nThe 'index' field in the tx_search results is correct, but they are out of order when queried as a block.\r\n\r\nA specific example happened where there were 5 Txs with the identical search tag submitted on the same block, but when queried the order was: 2, 5, 3, 0, 4 (there were also tags present on the block that did not match the tx_search terms).  This indicates the first tag (index=0) on the block was actually returned 4th in the tx_search results, etc.\r\n\r\n**What you expected to happen**:\r\nDesirable for tx_search results to always come back in the order the original Txs were processed.\r\n\r\n**Have you tried the latest version**: yes\r\n\r\n**How to reproduce it** (as minimally and precisely as possible): \r\nGenerate a block with multiple Txs and query for those Tx using the ABCI tx_search command.  The problem seems to occur often but can't guarantee it always happens.\r\n\r\n**Config (you can paste only the changes you've made)**:\r\nindex_all_tags set to true in config.\r\n"}}
{"actor":{"display_login":"fumecow"}}