Comparing version 0.1.3 to 0.2.0
@@ -68,2 +68,4 @@ var KssStyleguide, sectionQueryMatch; | ||
refsB = b.data.reference.split('.'), | ||
rLengthA = refsA.length, | ||
rLengthB = refsB.length, | ||
i, l = Math.max(refsA.length, refsB.length); | ||
@@ -73,6 +75,7 @@ | ||
if (refsA[i] && refsB[i]) { | ||
if (refsA[i] > refsB[i]) return +1; | ||
if (refsA[i] < refsB[i]) return -1; | ||
if (refsA[i] != refsB[i]) { | ||
return refsA[i] - refsB[i]; | ||
} | ||
} else { | ||
return refsA[i] - refsB[i]; | ||
return refsA[i] ? +1 : -1; | ||
} | ||
@@ -79,0 +82,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "NodeJS port of kss: A methodology for documenting CSS and generating styleguides", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"repository": { | ||
@@ -19,3 +19,3 @@ "type": "git", | ||
"engines": { | ||
"node": ">0.6.0" | ||
"node": ">=0.6.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
424919
51
4547