GNOME Bugzilla – Bug 749471
use gtk_source_buffer_sort_lines
Last modified: 2016-05-05 12:16:29 UTC
I added it in 3.17. The implementation differs a bit from what you have now in builder: - it gets the text slice line by line to be robust to different kind of line terminators - it uses g_utf8_collate_key to be utf8 safe it could be a bit slower but it seems ok for reasonable sizes. Let me know if it fits your needs and if I did not screw up with cursor placing etc
This was fixed during 3.18 cycle, but forgot to close this out.