Add sort methods to header file