I was wondering if there is already an existing way or package which allows to sort folded regions, one screenshot will clarify much better what i mean:
https://dl.dropboxusercontent.com/s/o601wv6o3fuke63/sublime_text_2017-11-07_21-59-22.png
The idea would be, sorting a bunch of regions where each region is treated as a “single entity”, I mean, I wouldn’t want to mess up the body content of the different regions. Personally I’d find it a really awesome way to refactor modules so the public interface becomes really tidy. Usually you sorted the API of a package in the docs but i still find it quite useful way to make coding a faster experience.
If this is not already implemented anywhere, what would it take me to write a plugin to do? Would it be very hard to achieve?
Thanks in advance.!