sorting snippet by length, include class search