equal
deleted
inserted
replaced
188 |
188 |
189 TODO |
189 TODO |
190 |
190 |
191 Semver version ordering formula. |
191 Semver version ordering formula. |
192 -------------------------------- |
192 -------------------------------- |
193 |
193 :: |
194 if (A.major != B.major) return A.major > B.major; |
194 |
195 if (A.minor != B.minor) return A.minor > B.minor; |
195 if (A.major != B.major) return A.major > B.major; |
196 if (A.patch != B.patch) return A.patch > B.patch; |
196 if (A.minor != B.minor) return A.minor > B.minor; |
197 if (A.special == B.special) return 0; |
197 if (A.patch != B.patch) return A.patch > B.patch; |
198 if (A.special == "") return 1; |
198 if (A.special == B.special) return 0; |
199 if (B.special == "") return -1; |
199 if (A.special == "") return 1; |
200 return A.special > B.special; |
200 if (B.special == "") return -1; |
|
201 return A.special > B.special; |
201 |
202 |
202 **NOTE** Accoding to this definition 1.0.1rc1 < 1.0.1rc10 < 1.0.1rc2 which is |
203 **NOTE** Accoding to this definition 1.0.1rc1 < 1.0.1rc10 < 1.0.1rc2 which is |
203 non meaningful. |
204 non meaningful. |
204 |
205 |
205 Odd/even numbering. |
206 Odd/even numbering. |