Note: Code you want to cite here should be formatted as code (using the # button), otherwise this forum does not display it (a bad issue in my opinion).
If not overwritten by an explicit &sortBy parameter, Wayfinder by default is sorting its output by the menuindex of the ressources. So check the menuindex values.