Mastacheata (!empty($user->lang['WROTE'])) ? $user->lang['WROTE'] : ucwords(strtolower(str_replace('_', ' ', 'WROTE'))):
smPlaylistOrder is an Alias for the number 8.
i.e. instead of:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
PAL.WaitForTime('+08:00:00');
You can also write this:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
PAL.WaitForTime('+0'+IntToStr(smPlaylistOrder)+':00:00');
Cool, isn't it?

OK jokes aside: smPlaylistOrder or the number 8 for that matter can be used together with stuff like CAT['xyz'].ChooseSong, CAT['xyz'].QueueBottom, CAT['xyz'].QueueTop
It tells each of these commands to pick the next song according to the custom order by which you sorted your category xyz. The song at the top will be picked first, then the one below that and so on. (Obviously it will skip songs that don't match your repeat rules if you tell it to EnforceRules)
They use a constant for that purpose because that is easier to remember than putting 8 in there.
It's similar to the InsertPosition for QueueDir for example (ipTop = 0, ipBottom = 1)
This is an old post, but just want to ask something:
Can I use smPlaylistOrder for playing mixes during night time?
For example let's say that I stream a show of Dave Aude, but only 1 track per week.
Will SAM automatically select the next track the next week, or will it start over from scratch?
Sorry for posting in the SAM DJ section, I am currently using SAM Broadcaster v2020.5 , but I found the post about this here so decided to reply to an existing topic rather than opening up a new one. If requested, I could make a new post inside the SAM Broadcaster section and ask there.