In the smartbox it is impossible to sort by marked & unread, although it is set in the settings of smartbox.
After restart the sort order is one marked mail in the first place, then the others all (inclusive the other marked mails) by date.
Please try the following procedure:
> open Smart Folder > in "Message list view" go to Menu (usually the three dots button) > Sort > choose the first item: "Unread + starred first" >
[Important]: open Menu again > Sort > choose: "Save as default" (the very last item in the list)
This should solve your problem.