Fix ordering of entity revisions diffs

This commit fixed the ordering of the revisions diffs in the editentity history screen.  Before, changes between revision 3 and 4 would be shown when looking at the detials of revision 3.  This patch fixes this, so the diff between revision 3 and 4 is shown with the details of rev 4.