I think you should be fine skipping the one upgrade (Detritus) and going straight to E of Tsort. You can look at the Changelog:
https://www.dokuwiki.org/changes to see if there's anything that might affect you. In particular notice that with Detritus, the PHP requirement moved up to 5.3.3. But, again, make a backup.