From fc1a10b4d5f0128297e2475d09132187da7d08a8 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 20 Sep 2008 04:03:36 -0400
Subject: [PATCH] - fixed identities sorting, to have allways identities with the same name in the same order on the list

---
 program/include/rcube_user.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index 0f0301c..97de97b 100644
--- a/program/include/rcube_user.php
+++ b/program/include/rcube_user.php
@@ -156,7 +156,7 @@
        WHERE  del<>1
        AND    user_id=?
        $sql_add
-       ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC",
+       ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC, identity_id ASC",
       $this->ID);
     
     return $sql_result;

--
Gitblit v1.9.1