Fix endUpdates sort issue
Merge pull request #74 from antonholmquist/master

Fixed endUpdates sort issue.