Problem of sorts overlapping solved