Yes, you can sort Ditto by whatever. The manager has a few sorting options so I am not sure which one you are using. In any case you can sort Ditto by the menuindex parameter which I think is the default for the manager.
This page has a full list of all of the available document variables. But you can also sort by template variable value as well.
If you are using the more recent version of Ditto you can sort with the &orderBy=`menuindex, ASC` and in previous versions you would use &sortBy=`menuindex` &sortDir=`ASC`