properly reverse sort commits