Add sorting facility