sort last commit properly