BUG: Index sortlevel ascending add type checking #32334
- [x] closes #32334
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

Add the check of ascending parameter in the sortlevel method, only allow bool value and single bool value list

cc @Dr-Irv 

> Looks good. Can you add a `whatsnew` entry for v1.2 ?

I have added the v1.2 whatsnew entry , please take a look thanks @BeanNan 