I use both org-sidebar (https://github.com/alphapapa/org-sidebar/) and Speedbar to navigate Org files. Both have minor issues. However, I find Speedbar works best, but it has a terrible habit of sorting headers in an order different to that of the file. In particular, headings with no sub-headings (such as when drafting an outline) are always displayed after headings with sub-headings. Does anybody know how to force the headeings' sort order in Speedbar to match that of the file's?
speedbar-tag-hierarchy-method has a doc-string that states in relevant part: "List of hooks which speedbar will use to organize tags into groups." The list can contain values such as:
The original poster has stated a preference that the tags not be sorted; i.e., that the order in which they appear be the same as the order in the file from which they were gathered. In a comment underneath the question, the O.P. has indicated that he is happy with setting the above-mentioned variable to
nil. It may be preferable, however, to nevertheless keep a non-offending value such as trimming the words; e.g.
(setq speedbar-tag-hierarchy-method '(speedbar-trim-words-tag-hierarchy))