You should add a new column named "revision". Revision is an autoincrement per "action", not per row.
It must me a normal index.
So you start like this:
Id Name Revision
1 aaaa. 1
2 bbbb. 2
3 cccc. 3
4 dddd. 4
Then when you update row 4 revision field should be 5 then if update row two, revision on row 2 should be 6.
For delete make a logical delete and also update the revision on that row and that should make the trick.
You return sorted by revision.