Sorting numbers by its last digit - moi variant