Sort Logitech Media Server Playlist/Queue using Home Assistant automation

Hi,

I am running homeassistant on raspberrypi 4 (Debian 11). Logitech Media Server is installed as an addon in homeassistant.

Please guide how can send a request from home Assistant to sort a current playlist/queue by title or random etc. in LMS.

kindly reply

Thank you.