Commit sorting