@@ -113,22 +113,22 @@ This is accomplished by adding some adjustment characters to the original semver
113
113
114
114
To give you an idea on how it works, the following table shows some examples of semver versions and their ` SortableString ` counter part:
115
115
116
- | semver | ` SortableString() ` |
117
- | ------------------ | ------------------ |
118
- | ` 1.2.4 ` | ` 1.2.4; ` |
119
- | ` 1.3.0-rc ` | ` 1.3.0-;rc ` |
120
- | ` 1.3.0-rc.0 ` | ` 1.3.0-;rc,:0 ` |
121
- | ` 1.3.0-rc.5 ` | ` 1.3.0-;rc,:5 ` |
122
- | ` 1.3.0-rc.5+build ` | ` 1.3.0-;rc,:5 ` |
123
- | ` 1.3.0-rc.20 ` | ` 1.3.0-;rc,::20 ` |
124
- | ` 1.3.0-rc- ` | ` 1.3.0-;rc- ` |
125
- | ` 1.3.0 ` | ` 1.3.0; ` |
126
- | ` 1.20.0 ` | ` 1.:20.0; ` |
127
- | ` 1.90.0 ` | ` 1.:90.0; ` |
128
- | ` 1.300.0-6 ` | ` 1.::300.0-:6 ` |
129
- | ` 1.300.0-30 ` | ` 1.::300.0-::30 ` |
130
- | ` 1.300.0-1pre ` | ` 1.::300.0-;1pre ` |
131
- | ` 1.300.0-pre ` | ` 1.::300.0-;pre ` |
132
- | ` 1.300.0 ` | ` 1.::300.0; ` |
116
+ | semver | ` SortableString() ` |
117
+ | ------------------ | ------------------- |
118
+ | ` 1.2.4 ` | ` ; 1.2.4;` |
119
+ | ` 1.3.0-rc ` | ` ; 1.3.0-;rc` |
120
+ | ` 1.3.0-rc.0 ` | ` ; 1.3.0-;rc,:0` |
121
+ | ` 1.3.0-rc.5 ` | ` ; 1.3.0-;rc,:5` |
122
+ | ` 1.3.0-rc.5+build ` | ` ; 1.3.0-;rc,:5` |
123
+ | ` 1.3.0-rc.20 ` | ` ; 1.3.0-;rc,::20` |
124
+ | ` 1.3.0-rc- ` | ` ; 1.3.0-;rc-` |
125
+ | ` 1.3.0 ` | ` ; 1.3.0;` |
126
+ | ` 1.20.0 ` | ` ; 1.:20.0;` |
127
+ | ` 1.90.0 ` | ` ; 1.:90.0;` |
128
+ | ` 1.300.0-6 ` | ` ; 1.::300.0-:6` |
129
+ | ` 1.300.0-30 ` | ` ; 1.::300.0-::30` |
130
+ | ` 1.300.0-1pre ` | ` ; 1.::300.0-;1pre` |
131
+ | ` 1.300.0-pre ` | ` ; 1.::300.0-;pre` |
132
+ | ` 1.300.0 ` | ` ; 1.::300.0;` |
133
133
134
134
The ` SortableString() ` can be used in SQL databases to simplify the ordering of a set of versions in a table.
0 commit comments