integrated sorting