Fix default sorting on tabs