<p>In <a href="https://github.com/geany/geany/pull/1144#discussion_r72407471">src/notebook.c</a>:</p>
<pre style='color:#555'>> +            else if (interface_prefs.auto_sort_tabs_pathname)
> +                  notebook_sort_tabs(NOTEBOOK_TAB_SORT_PATHNAME);
> +  }
> +
> +  on_idle_auto_sort_hooked = FALSE;
> +  return FALSE;
> +}
> +
> +
> +static gboolean on_document_open(GeanyDocument* doc)
> +{
> +  if (!on_idle_auto_sort_hooked && interface_prefs.show_notebook_tabs &&
> +          (interface_prefs.auto_sort_tabs_filename || interface_prefs.auto_sort_tabs_pathname))
> +  {
> +          if (g_idle_add(on_idle_auto_sort_tabs, NULL) > 0)
> +                  on_idle_auto_sort_hooked = TRUE;
</pre>
<p>Gradual sorting indeed is the better way. I already have a code for it but it still doesn't work as expected. I'll figure it out soon.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1144/files/4f219bdad24610e674da26cf2dc97d7d8a10b8c8#r72407471">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ-X_4JYZMy7gke6KhzoFRTJM8_gXks5qZyNtgaJpZM4JQxCD">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJzYLkCIiWFLH6viwoXx_CdP3RbAZks5qZyNtgaJpZM4JQxCD.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1144/files/4f219bdad24610e674da26cf2dc97d7d8a10b8c8#r72407471"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>