Backport 3acf77119652d4e6081815dac7dbed4ed6fb7d2f from master
authorArt Cancro <ajc@citadel.org>
Tue, 22 Feb 2011 23:33:15 +0000 (18:33 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 22 Feb 2011 23:33:15 +0000 (18:33 -0500)
citadel/modules/migrate/serv_migrate.c

index 598ce1253f6c96bcf52c6f1998bea72b38b21a96..9b997e132c9b815d4301dffbbc0caeae5ef4716a 100644 (file)
@@ -182,7 +182,7 @@ void migr_export_rooms(void) {
         * this will be handled by exporting the reference count, not by
         * exporting the message multiple times.)
         */
-       snprintf(cmd, sizeof cmd, "sort <%s >%s", migr_tempfilename1, migr_tempfilename2);
+       snprintf(cmd, sizeof cmd, "sort -n <%s >%s", migr_tempfilename1, migr_tempfilename2);
        if (system(cmd) != 0) CtdlLogPrintf(CTDL_ALERT, "Error %d\n", errno);
        snprintf(cmd, sizeof cmd, "uniq <%s >%s", migr_tempfilename2, migr_tempfilename1);
        if (system(cmd) != 0) CtdlLogPrintf(CTDL_ALERT, "Error %d\n", errno);