Sort address book popup forward, not reverse
authorArt Cancro <ajc@citadel.org>
Sat, 17 May 2008 02:47:29 +0000 (02:47 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 17 May 2008 02:47:29 +0000 (02:47 +0000)
webcit/addressbook_popup.c

index 5e3118b0c88b197fc9dd572bcc2b77af28aaac5d..7269b043b577ab2553d931a0d9f680c379494436 100644 (file)
@@ -60,7 +60,7 @@ void display_address_book_middle_div(void) {
                }
        }
 
-       SortByHashKey(List, 0);
+       SortByHashKey(List, 1);
        it = GetNewHashPos();
        while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
                wprintf("<option value=\"");
@@ -121,7 +121,7 @@ void display_address_book_inner_div() {
                        Put(List, Name, len, Name, NULL);
 
                }
-               SortByHashKey(List, 0);
+               SortByHashKey(List, 1);
                it = GetNewHashPos();
                while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
                        wprintf("<option value=\"");
@@ -145,7 +145,7 @@ void display_address_book_inner_div() {
                        Put(List, Name, len, Name, NULL);
 
                }
-               SortByHashKey(List, 0);
+               SortByHashKey(List, 1);
                it = GetNewHashPos();
                while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
                        wprintf("<option value=\"");