add method:sort by commit