[builtins] PlayMedia() should use a sort order appropriate for the items

fixes #15136

@Montellese please take a quick look.