Adding reverse and sort