Wrong order when getting random smart playlists with Files.GetDirectory

Hi,
if I issue a Files.GetDirectory with the following parameters:

directory = “special://profile/playlists/music/rock.xsp”;
properties = (
duration,
artist,
album,
title,
genreid,
thumbnail
);

Where rock.xsp is a smart playlist (all tracks of a certain genre) with random order, 54 items but limit = 50, the result is sorted by artist and album, where in Kodi it is random as expected.
If I remove the limit, it works. If I use a different smart playlist with a different genre (which has 6165 tracks), it works even with limit = 50. I don’t know if the number of tracks is the thing what makes it work.

Problem can be seen with the official iOS remote control.

One of the customers of my app says it worked in a previous version of Kodi, but I didn’t investigate further in this direction.

Regards,
Markus