adding sort