@ -102,7 +102,7 @@ define('forum/topic/fork', function() {
}
if (pids.length) {
pids.sort();
pids.sort(function(a,b) { return a - b; });
forkModal.find('#fork-pids').html(pids.toString());
} else {
showNoPostsSelected();
@ -28,7 +28,9 @@ module.exports = function(Topics) {
return callback(new Error('[[error:invalid-pid]]'));
pids.sort(function(a, b) {
return a - b;
});
var mainPid = pids[0];
async.parallel({