Added code to sort hand-based changes