Optimize: removed non-sorted sets