adding sort class