sorting, advanced analysis