Add sorting function to libcangjie.