diff --git a/lib/migration.js b/lib/migration.js
index <HASH>..<HASH> 100644
--- a/lib/migration.js
+++ b/lib/migration.js
@@ -13,6 +13,7 @@ var comb = require("comb"),
     isUndefined = comb.isUndefined,
     fs = require("fs"),
     path = require("path"),
+    baseName = path.basename,
     asyncArray = comb.async.array;
 
 
@@ -396,7 +397,11 @@ var TimestampMigrator = define(Migrator, {
             return asyncArray(this._super(arguments)).sort(function (f1, f2) {
                 var ret = this.getMigrationVersionFromFile(f1) - this.getMigrationVersionFromFile(f2);
                 if (ret === 0) {
-                    ret = f1 > f1 ? 1 : f1 < f2 ? -1 : 0;
+                    var b1 = baseName(f1, ".js").split("."),
+                        b2 = baseName(f2, ".js").split(".");
+                    b1 = b1[b1.length - 1];
+                    b2 = b2[b2.length - 1];
+                    ret = b1 > b1 ? 1 : b1 < b2 ? -1 : 0;
                 }
                 return ret;
             }.bind(this));
fix 2 for sorting migration issue fix