Solved sorting problems