1

Topic: Sort domains by alphabet is bugged when having relay domains

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: 2.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When I sort the domains in the iredadmin pro interface, it sorts them right until the letter n (maybe o, p or q, but I don't have domains with this letter starting)

https://i.imgur.com/edwJdZW.png

After the letter n, there are all relay domains listed correctly by alphabet, and after that the normal domains keep getting listed. Also the domains with alias and relay are sorted incorrect.

This is not high priority tho, would just be nice if it would work as it's supposed to do smile

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Sort domains by alphabet is bugged when having relay domains

Fixed in development edition moment ago, and here's patch for you:

diff -r 46d56772c52e templates/default/sql/domain/list.html
--- a/templates/default/sql/domain/list.html    Wed Oct 10 17:59:05 2018 +0200
+++ b/templates/default/sql/domain/list.html    Fri Oct 12 18:03:01 2018 +0200
@@ -82,6 +82,10 @@
                                     {% endif %}
 
                                     <td class="vcenter">
+                                        <a href="{{ctx.homepath}}/profile/domain/general/{{ domain }}"
+                                           title="{{ _('Edit account profile') }}"
+                                           >{{ domain }}</a>
+
                                         <a href="{{ctx.homepath}}/profile/domain/general/{{ domain }}">
                                             <i class="fa fa-cog fa-lg fr-space" title="{{ _('Edit account profile') }}"></i>
                                         </a>
@@ -119,10 +123,6 @@
                                                       style="text-decoration: none; color: white;"
                                                       >{{ _('PLEASE VERIFY OWNERSHIP') }}</a></span>
                                         {% endif %}
-
-                                        <a href="{{ctx.homepath}}/profile/domain/general/{{ domain }}"
-                                           title="{{ _('Edit account profile') }}"
-                                           >{{ domain }}</a>
                                     </td>
 
                                     <td class="vcenter">{% if r.description %}{{ r.description |cut_string |e }}{% endif %}</td>

3

Re: Sort domains by alphabet is bugged when having relay domains

Thanks, gonna wait for the next release tho smile