integrate sort